Fixed issue where the numbers don't appear properly after parsing.
This commit is contained in:
parent
5184f94e2f
commit
4a4bf8d98d
|
@ -169,12 +169,12 @@ public:
|
|||
case 'l': // we have a long int
|
||||
if (tapeidx + 1 >= howmany)
|
||||
return false;
|
||||
printf("%" PRId64, (int64_t)tape[tapeidx++]);
|
||||
printf("%" PRId64, (int64_t)tape[++tapeidx]);
|
||||
break;
|
||||
case 'd': // we have a double
|
||||
if (tapeidx + 1 >= howmany)
|
||||
return false;
|
||||
printf("%f", *((double *)&tape[tapeidx++]));
|
||||
printf("%f", *((double *)&tape[++tapeidx]));
|
||||
break;
|
||||
case 'n': // we have a null
|
||||
printf("null");
|
||||
|
|
Loading…
Reference in New Issue