Bruce Korb <[EMAIL PROTECTED]> writes: > @@ -219,12 +219,12 @@ addNumberValue( void** pp, char const* p > dataLen--; pzValue++; > } > if (dataLen == 0) > - pNV->v.boolVal = 0; > + pNV->v.longVal = 0; > else > - pNV->v.boolVal = atoi( pzValue ); > + pNV->v.longVal = strtol(pzValue, 0, 0);
atoi only parses decimal, strtol also accepts 0 and 0x prefixes. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Autogen-users mailing list Autogen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/autogen-users