From a89cf765098ba9927eafeaca0f303eb76052fc64 Mon Sep 17 00:00:00 2001 From: charles Date: Tue, 25 Nov 2008 00:29:32 +0000 Subject: [PATCH] Fix sign handling problem. This works, buut should probably be improved --- yaffs_guts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2