small fix
This commit is contained in:
@@ -135,6 +135,7 @@ Program createProgramFromText(const char* input) {
|
||||
case OP_IMM16: {
|
||||
char* endptr;
|
||||
instruction.immediate = strtol(buf, &endptr, 0);
|
||||
instruction.hasImm16 = true;
|
||||
if (endptr == (char*)buf) {
|
||||
fprintf(stderr, "couldn't convert %s to a number\n", buf);
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user