aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/buildvm_fold.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildvm_fold.c b/src/buildvm_fold.c
index 97632c56..eaca067f 100644
--- a/src/buildvm_fold.c
+++ b/src/buildvm_fold.c
@@ -110,6 +110,11 @@ static uint32_t nexttoken(char **pp, int allowlit, int allowany)
110 for (i = 0; ircall_names[i]; i++) 110 for (i = 0; ircall_names[i]; i++)
111 if (!strcmp(ircall_names[i], p+7)) 111 if (!strcmp(ircall_names[i], p+7))
112 return i; 112 return i;
113 } else if (allowlit && *p >= '0' && *p <= '9') {
114 for (i = 0; *p >= '0' && *p <= '9'; p++)
115 i = i*10 + (*p - '0');
116 if (*p == '\0')
117 return i;
113 } else if (allowany && !strcmp("any", p)) { 118 } else if (allowany && !strcmp("any", p)) {
114 return 0xff; 119 return 0xff;
115 } else { 120 } else {