Revision 1652 trunk/src/tools99/val.cpp

val.cpp (revision 1652)
13 13
  if ( (s.size() > 2) && (s(1,2) == adstring("0x") ))
14 14
    z = sscanf((const char*)s, "%x", &v);
15 15
  else
16
    z = sscanf((const char*)s, "%*d", &v);
16
    z = sscanf((const char*)s, "%d", &v);
17 17

  
18 18
  if (z != 1)
19 19
    code = 1;
......
29 29
  if ( (s.size() > 2) && (s(1,2) == adstring("0x") ))
30 30
    z = sscanf((const char*)s, "%x", &v);
31 31
  else
32
    z = sscanf((const char*)s, "%*d", &v);
32
    z = sscanf((const char*)s, "%d", &v);
33 33

  
34 34
  if (z != 1)
35 35
    code = 1;

Also available in: Unified diff