summaryrefslogtreecommitdiffstats
path: root/ctok.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctok.c')
-rw-r--r--ctok.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ctok.c b/ctok.c
index db5609ec..8b88e1a2 100644
--- a/ctok.c
+++ b/ctok.c
@@ -224,6 +224,10 @@ ctokGetNumber(ctok_t *pThis, ctok_token_t *pToken)
CHKiRet(ctokGetCharFromStream(pThis, &c));
c = tolower(c);
}
+
+ /* we need to unget the character that made the loop terminate */
+ CHKiRet(ctokUngetCharFromStream(pThis, c));
+
CHKiRet(var.SetInt64(pToken->pVar, n));
dbgprintf("number, number is: '%lld'\n", n);
@@ -518,7 +522,7 @@ ctokGetToken(ctok_t *pThis, ctok_token_t **ppToken)
} while(bRetry); /* warning: do ... while()! */
*ppToken = pToken;
-RUNLOG_VAR("%d", pToken->tok);
+ dbgoprint((obj_t*) pToken, "token: %d\n", pToken->tok);
finalize_it:
if(iRet != RS_RET_OK) {