core: reader_read_identifier_or_number: Prepare for M2-Planet.

* src/reader.c (reader_read_identifier_or_number): Prepare for M2-Planet.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-07-16 21:35:50 +02:00
parent 82213b960e
commit a1eade98c6
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -76,13 +76,15 @@ reader_read_identifier_or_number (int c)
int i = 0;
long n = 0;
int negative_p = 0;
if (c == '+' && isdigit (peekchar ()) != 0)
c = readchar ();
else if (c == '-' && (isdigit (peekchar ()) != 0))
{
negative_p = 1;
if (c == '+')
if (isdigit (peekchar ()) != 0)
c = readchar ();
}
if (c == '-')
if (isdigit (peekchar ()) != 0)
{
negative_p = 1;
c = readchar ();
}
while (isdigit (c) != 0)
{
g_buf[i] = c;