Fix sign handling problem. This works, buut should probably be improved
authorcharles <charles>
Tue, 25 Nov 2008 00:29:32 +0000 (00:29 +0000)
committercharles <charles>
Tue, 25 Nov 2008 00:29:32 +0000 (00:29 +0000)
yaffs_guts.c

index a6775a9498cae9e6870a83df509c2fd32fb61b9b..6d199656b38052f25e7f048e810bb4cdd4c3d747 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 const char *yaffs_guts_c_version =
  */
 
 const char *yaffs_guts_c_version =
-    "$Id: yaffs_guts.c,v 1.63 2008-11-21 02:17:32 charles Exp $";
+    "$Id: yaffs_guts.c,v 1.64 2008-11-25 00:29:32 charles Exp $";
 
 #include "yportenv.h"
 
 
 #include "yportenv.h"
 
@@ -4868,7 +4868,7 @@ int yaffs_WriteDataToFile(yaffs_Object * in, const __u8 * buffer, loff_t offset,
 
                        nToWriteBack =
                            (nBytesRead >
 
                        nToWriteBack =
                            (nBytesRead >
-                            (start + n)) ? nBytesRead : (start + n);
+                            ((int)start + n)) ? nBytesRead : (start + n);
 
                } else {
                        nToCopy = dev->nDataBytesPerChunk - start;
 
                } else {
                        nToCopy = dev->nDataBytesPerChunk - start;