From: <fr...@us...> - 2016-03-25 11:31:33
|
Revision: 5368 http://sourceforge.net/p/fuse-emulator/code/5368 Author: fredm Date: 2016-03-25 11:31:31 +0000 (Fri, 25 Mar 2016) Log Message: ----------- Allow for the possibility that inital_level has the default value. Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/tape_block.c Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2016-03-25 10:26:28 UTC (rev 5367) +++ trunk/libspectrum/hacking/ChangeLog 2016-03-25 11:31:31 UTC (rev 5368) @@ -1020,3 +1020,5 @@ 20150617 Makefile.am,test/Makefile.am: enable silent rules for perl and windres commands (Sergio). 20150831 test/turbo-zeropilot.tzx: add mime-type property (Sergio). +20160325 tape_block.c: allow for the possibility that inital_level has the + default value (Fred). Modified: trunk/libspectrum/tape_block.c =================================================================== --- trunk/libspectrum/tape_block.c 2016-03-25 10:26:28 UTC (rev 5367) +++ trunk/libspectrum/tape_block.c 2016-03-25 11:31:31 UTC (rev 5368) @@ -381,7 +381,9 @@ } } - state->level = block->initial_level; + if( block->initial_level != -1 ) { + state->level = block->initial_level; + } /* We're just before the start of the data */ state->bytes_through_block = -1; state->bits_through_byte = 7; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |