fix: ReadREAL did not work, because ok was'nt initialized
This commit is contained in:
parent
9179494c16
commit
f6a828b183
|
@ -324,6 +324,7 @@ IMPLEMENTATION MODULE PascalIo;
|
|||
|
||||
BEGIN
|
||||
index := 0;
|
||||
ok := TRUE;
|
||||
WHILE NextCHAR(inputtext) IN spaces DO
|
||||
Get(inputtext);
|
||||
END;
|
||||
|
|
|
@ -63,9 +63,8 @@ _catch(trapno)
|
|||
do
|
||||
*s++ = i % 10 + '0';
|
||||
while (i /= 10);
|
||||
*s = 0;
|
||||
s = buf;
|
||||
while (*p++ = *s++) /* nothing */;
|
||||
while (s > buf) *p++ = *--s;
|
||||
*p = 0;
|
||||
Traps_Message(q, 0, (int) (p - q), 1);
|
||||
}
|
||||
exit(trapno);
|
||||
|
|
Loading…
Reference in a new issue