add the last bits of the hack
This commit is contained in:
parent
aad3648fc0
commit
676addf333
|
@ -442,13 +442,15 @@ void ExpressionPushInt(struct ParseState *Parser,
|
||||||
{
|
{
|
||||||
struct Value *ValueLoc = VariableAllocValueFromType(Parser->pc, Parser,
|
struct Value *ValueLoc = VariableAllocValueFromType(Parser->pc, Parser,
|
||||||
&Parser->pc->IntType, false, NULL, false);
|
&Parser->pc->IntType, false, NULL, false);
|
||||||
// jdp: ugly hack to properly print long values
|
// jdp: an ugly hack to a) assign the correct value and b) properly print long values
|
||||||
ValueLoc->Val->UnsignedLongInteger = (unsigned long)IntValue;
|
ValueLoc->Val->UnsignedLongInteger = (unsigned long)IntValue;
|
||||||
ValueLoc->Val->LongInteger = (long)IntValue;
|
ValueLoc->Val->LongInteger = (long)IntValue;
|
||||||
ValueLoc->Val->Integer = (int)IntValue;
|
ValueLoc->Val->Integer = (int)IntValue;
|
||||||
ValueLoc->Val->ShortInteger = (short)IntValue;
|
ValueLoc->Val->ShortInteger = (short)IntValue;
|
||||||
ValueLoc->Val->UnsignedShortInteger = (unsigned short)IntValue;
|
ValueLoc->Val->UnsignedShortInteger = (unsigned short)IntValue;
|
||||||
ValueLoc->Val->UnsignedInteger = (unsigned int)IntValue;
|
ValueLoc->Val->UnsignedInteger = (unsigned int)IntValue;
|
||||||
|
ValueLoc->Val->UnsignedCharacter = (unsigned char)IntValue;
|
||||||
|
ValueLoc->Val->Character = (char)IntValue;
|
||||||
|
|
||||||
ExpressionStackPushValueNode(Parser, StackTop, ValueLoc);
|
ExpressionStackPushValueNode(Parser, StackTop, ValueLoc);
|
||||||
}
|
}
|
||||||
|
|
2
picoc.h
2
picoc.h
|
@ -9,7 +9,7 @@
|
||||||
/* VER, the git hash number, and TAG are obtained via the Makefile */
|
/* VER, the git hash number, and TAG are obtained via the Makefile */
|
||||||
#define PICOC_VERSION TAG " r" VER
|
#define PICOC_VERSION TAG " r" VER
|
||||||
#else
|
#else
|
||||||
#define PICOC_VERSION "v2.3.1"
|
#define PICOC_VERSION "v2.3.2"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "interpreter.h"
|
#include "interpreter.h"
|
||||||
|
|
Loading…
Reference in a new issue