From: charles Date: Tue, 25 Nov 2008 00:29:32 +0000 (+0000) Subject: Fix sign handling problem. This works, buut should probably be improved X-Git-Tag: pre-name-change~256 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=a89cf765098ba9927eafeaca0f303eb76052fc64;hp=85530132e169794d9e7e9c1de1396a12bc650383 Fix sign handling problem. This works, buut should probably be improved --- diff --git a/yaffs_guts.c b/yaffs_guts.c index a6775a9..6d19965 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -12,7 +12,7 @@ */ 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" @@ -4868,7 +4868,7 @@ int yaffs_WriteDataToFile(yaffs_Object * in, const __u8 * buffer, loff_t offset, nToWriteBack = (nBytesRead > - (start + n)) ? nBytesRead : (start + n); + ((int)start + n)) ? nBytesRead : (start + n); } else { nToCopy = dev->nDataBytesPerChunk - start;