From: <zu...@us...> - 2015-03-02 19:15:45
|
Revision: 5122 http://sourceforge.net/p/fuse-emulator/code/5122 Author: zubzero Date: 2015-03-02 19:15:42 +0000 (Mon, 02 Mar 2015) Log Message: ----------- Fix ordering of args in libspectrum_new0() Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/libspectrum.h.in Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2015-03-02 13:11:54 UTC (rev 5121) +++ trunk/libspectrum/hacking/ChangeLog 2015-03-02 19:15:42 UTC (rev 5122) @@ -978,3 +978,4 @@ 20150302 accessor.pl,creator.c,csw.c,dck.c,ide.c,microdrive.c,pzx_read.c,rzx.c, szx.c,tape.c,tape_block.c,tzx_read.c,tzx_write.c: use libspectrum_new() and libspectrum_renew() macros where sizeof(elem) > 1 (Stuart). +20150302 libspectrum.in.h: fix ordering of args in libspectrum_new0() (Stuart). Modified: trunk/libspectrum/libspectrum.h.in =================================================================== --- trunk/libspectrum/libspectrum.h.in 2015-03-02 13:11:54 UTC (rev 5121) +++ trunk/libspectrum/libspectrum.h.in 2015-03-02 19:15:42 UTC (rev 5122) @@ -153,7 +153,7 @@ ( ( type * ) libspectrum_malloc( sizeof( type ) * (count) ) ) #define libspectrum_new0( type, count ) \ - ( ( type * ) libspectrum_calloc( sizeof( type ), (count) ) ) + ( ( type * ) libspectrum_calloc( (count), sizeof( type ) ) ) #define libspectrum_renew( type, mem, count ) \ ( ( type * ) libspectrum_realloc( (void *)mem, sizeof( type ) * (count) ) ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |