sturdier fm2 loader
This commit is contained in:
parent
1cb06319e9
commit
19100f0259
|
@ -72,7 +72,9 @@ template<typename T> T templateIntegerDecFromIstream(std::istream* is)
|
|||
|
||||
for(;;)
|
||||
{
|
||||
int d = is->get() - '0';
|
||||
int c = is->get();
|
||||
if(c == -1) return ret;
|
||||
int d = c - '0';
|
||||
if((d<0 || d>9))
|
||||
{
|
||||
if(!pre)
|
||||
|
|
Loading…
Reference in New Issue