Coverage - Test going back when you can't.
[open-adventure.git] / dungeon.c
index 725152d44c096166a6f6765a16eb35fa000ce6a0..5f490688da56f504d1e40bed95a0904464d04df0 100644 (file)
--- 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;