From: <pa...@us...> - 2008-10-21 09:32:12
|
Revision: 3780 http://fuse-emulator.svn.sourceforge.net/fuse-emulator/?rev=3780&view=rev Author: pak21 Date: 2008-10-21 09:01:33 +0000 (Tue, 21 Oct 2008) Log Message: ----------- Remove warning. Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/tape_block.c Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2008-10-14 14:48:43 UTC (rev 3779) +++ trunk/libspectrum/hacking/ChangeLog 2008-10-21 09:01:33 UTC (rev 3780) @@ -677,3 +677,4 @@ function to get block length. 20080928 internals.h,tape.c,tape_block.[ch],test/test.c: extend timing support to raw data blocks, RLE pulse blocks and the block o' doom (Fred). +20081020 tape_block.c: remove warning. Modified: trunk/libspectrum/tape_block.c =================================================================== --- trunk/libspectrum/tape_block.c 2008-10-14 14:48:43 UTC (rev 3779) +++ trunk/libspectrum/tape_block.c 2008-10-21 09:01:33 UTC (rev 3780) @@ -37,6 +37,8 @@ static const size_t LIBSPECTRUM_TAPE_PILOTS_HEADER = 0x1f7f; static const size_t LIBSPECTRUM_TAPE_PILOTS_DATA = 0x0c97; +#define TZX_HZ 3500000 + /* Functions to initialise block types */ static libspectrum_error @@ -486,8 +488,7 @@ static libspectrum_dword convert_ms_to_tstates( libspectrum_dword ms ) { - static const libspectrum_dword tzx_hz = 3500000; - static const libspectrum_dword tstates_per_ms = tzx_hz / 1000; + static const libspectrum_dword tstates_per_ms = TZX_HZ / 1000; return ms * tstates_per_ms; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |