X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=dungeon.c;h=5f490688da56f504d1e40bed95a0904464d04df0;hb=1ed812691287700b4bdf804d782f09f4a0eee0de;hp=725152d44c096166a6f6765a16eb35fa000ce6a0;hpb=894b3de9493d26d7dec33aac7b820783c108803b;p=open-adventure.git diff --git a/dungeon.c b/dungeon.c index 725152d..5f49068 100644 --- a/dungeon.c +++ b/dungeon.c @@ -159,7 +159,7 @@ static long GETNUM(FILE *source) * scanned). If we're at the end of the line or encounter an illegal * character (not a digit, hyphen, or blank), we return 0. */ - long DIGIT, GETNUM, sign; + long GETNUM, sign; if (source != NULL) MAPLIN(source); GETNUM = 0; @@ -176,7 +176,7 @@ static long GETNUM(FILE *source) LNPOSN = LNPOSN + 1; } while (!(LNPOSN > LNLENG || INLINE[LNPOSN] == 0)) { - DIGIT = INLINE[LNPOSN] - 64; + long DIGIT = INLINE[LNPOSN] - 64; if (DIGIT < 0 || DIGIT > 9) { GETNUM = 0; break;