From: <fr...@us...> - 2012-12-26 10:38:53
|
Revision: 4797 http://fuse-emulator.svn.sourceforge.net/fuse-emulator/?rev=4797&view=rev Author: fredm Date: 2012-12-26 10:38:47 +0000 (Wed, 26 Dec 2012) Log Message: ----------- Inline constant in write_snet_chunk(). Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/szx.c Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2012-12-26 10:36:57 UTC (rev 4796) +++ trunk/libspectrum/hacking/ChangeLog 2012-12-26 10:38:47 UTC (rev 4797) @@ -919,3 +919,4 @@ 20121226 accessor.pl,snap_accessors.txt,snapshot.c,szx.c: MEMPTR is also in v1.4 SZX files (Fred). 20121226 make-perl.c: fix typo in comment (Fred). +20121226 szx.c: inline constant in write_snet_chunk() (Fred). Modified: trunk/libspectrum/szx.c =================================================================== --- trunk/libspectrum/szx.c 2012-12-26 10:36:57 UTC (rev 4796) +++ trunk/libspectrum/szx.c 2012-12-26 10:38:47 UTC (rev 4797) @@ -3721,10 +3721,9 @@ write_snet_chunk( libspectrum_byte **buffer, libspectrum_byte **ptr, size_t *length, libspectrum_snap *snap, int compress ) { - size_t block_size = 54; libspectrum_word flags = 0; - write_chunk_header( buffer, ptr, length, ZXSTBID_SPECTRANET, block_size ); + write_chunk_header( buffer, ptr, length, ZXSTBID_SPECTRANET, 54 ); if( libspectrum_snap_spectranet_paged( snap ) ) flags |= ZXSTSNET_PAGED; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |