PatchSet 5281 Date: 2004/10/12 17:21:52 Author: robilad Branch: HEAD Tag: (none) Log: Added missing cast to make ZipFile warning-free
2004-10-12 Dalibor Topic <[EMAIL PROTECTED]> * libraries/clib/native/ZipFile.c: (java_util_zip_ZipFile_getZipData0) Cast size to size_t when invoking memcpy. Members: ChangeLog:1.2833->1.2834 libraries/clib/native/ZipFile.c:1.21->1.22 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.2833 kaffe/ChangeLog:1.2834 --- kaffe/ChangeLog:1.2833 Tue Oct 12 17:00:07 2004 +++ kaffe/ChangeLog Tue Oct 12 17:21:52 2004 @@ -1,5 +1,11 @@ 2004-10-12 Dalibor Topic <[EMAIL PROTECTED]> + * libraries/clib/native/ZipFile.c: + (java_util_zip_ZipFile_getZipData0) Cast size to size_t + when invoking memcpy. + +2004-10-12 Dalibor Topic <[EMAIL PROTECTED]> + * include/errors.h: Include support.h for execute_java_constructor prototype. (NEW_LANG_EXCEPTION, NEW_LANG_EXCEPTION_MESSAGE, Index: kaffe/libraries/clib/native/ZipFile.c diff -u kaffe/libraries/clib/native/ZipFile.c:1.21 kaffe/libraries/clib/native/ZipFile.c:1.22 --- kaffe/libraries/clib/native/ZipFile.c:1.21 Tue Oct 12 17:00:10 2004 +++ kaffe/libraries/clib/native/ZipFile.c Tue Oct 12 17:21:54 2004 @@ -95,7 +95,7 @@ array = (HArrayOfByte*)AllocArray((size_t)size, TYPE_Byte); if( buf ) { - memcpy(unhand_array(array)->body, buf, unhand(zentry)->size); + memcpy(unhand_array(array)->body, buf, (size_t)size); gc_free(buf); } return (array); _______________________________________________ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe