gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/cygnal crc.cpp


From: Rob Savoye
Subject: [Gnash-commit] gnash/cygnal crc.cpp
Date: Wed, 26 Dec 2007 01:31:10 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Rob Savoye <rsavoye>    07/12/26 01:31:10

Modified files:
        cygnal         : crc.cpp 

Log message:
        Use uint32_t for extractNumber().

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/crc.cpp?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: crc.cpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/crc.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- crc.cpp     13 Dec 2007 16:15:28 -0000      1.1
+++ crc.cpp     26 Dec 2007 01:31:10 -0000      1.2
@@ -33,6 +33,7 @@
 #include <sys/types.h>
 #include <unistd.h> // for getuid()
 #include <sys/stat.h>
+#include <boost/cstdint.hpp>
 
 #include <cctype>  // for toupper
 #include <string>
@@ -174,11 +175,11 @@
             useParserDump(test);
             useActionDump(test);
 
-            int num;
+            uint32_t num;
             extractNumber(&num, "verbosity", variable, value);
             verbosityLevel(num);
             
-            extractNumber(&_port_offset, "portOffset", variable, value);
+            extractNumber((uint32_t *)&_port_offset, "portOffset", variable, 
value);
         } while (!in.eof());
 
     } else {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]