[Scummvm-cvs-logs] SF.net SVN: scummvm:[55133] scummvm/trunk/engines/hugo/sound.cpp

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Thu Jan 6 15:16:23 CET 2011


Revision: 55133
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55133&view=rev
Author:   strangerke
Date:     2011-01-06 14:16:23 +0000 (Thu, 06 Jan 2011)

Log Message:
-----------
HUGO: Fix GCC warnings

Modified Paths:
--------------
    scummvm/trunk/engines/hugo/sound.cpp

Modified: scummvm/trunk/engines/hugo/sound.cpp
===================================================================
--- scummvm/trunk/engines/hugo/sound.cpp	2011-01-06 14:06:04 UTC (rev 55132)
+++ scummvm/trunk/engines/hugo/sound.cpp	2011-01-06 14:16:23 UTC (rev 55133)
@@ -376,8 +376,8 @@
 * Timer: >0 - song still going, 0 - Stop note, -1 - Set next note
 */
 void SoundHandler::pcspkr_player() {
-	static char pcspkrTimer = 0;                    // Timer (ticks) for note being played
-	static char pcspkrOctave = 3;                   // Current octave 1..7
+	static byte pcspkrTimer = 0;                    // Timer (ticks) for note being played
+	static byte pcspkrOctave = 3;                   // Current octave 1..7
 	static byte pcspkrNoteDuration = 2;             // Current length of note (ticks)
 	static uint16 pcspkrNotes[8] =  {1352, 1205, 2274, 2026, 1805, 1704, 1518}; // The 3rd octave note counts A..G
 	static uint16 pcspkrSharps[8] = {1279, 1171, 2150, 1916, 1755, 1611, 1435}; // The sharps, A# to B#


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list