From: Braden M. <br...@us...> - 2005-11-29 06:18:11
|
Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26698/src/libopenvrml/openvrml Modified Files: Vrml97Parser.g Log Message: Read a hexadecimal integer into an unsigned value and convert it to an openvrml::int32. The VRML97 grammar includes a notion of signed hexadecimal integers; but this doesn't make a lot of sense. Index: Vrml97Parser.g =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/Vrml97Parser.g,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** Vrml97Parser.g 28 Nov 2005 02:56:12 -0000 1.41 --- Vrml97Parser.g 29 Nov 2005 06:18:03 -0000 1.42 *************** *** 1909,1914 **** std::istringstream(i0->getText()) >> val; } ! | i1:HEX_INTEGER { ! std::istringstream(i1->getText()) >> std::hex >> val; } ; --- 1909,1916 ---- std::istringstream(i0->getText()) >> val; } ! | i1:HEX_INTEGER { ! unsigned long unsigned_val; ! std::istringstream(i1->getText()) >> std::hex >> unsigned_val; ! val = int32(unsigned_val); } ; |