fix Value::home integer overflow

A method with a large number of local variable slots may imply offsets
larger than a int8_t can represent, so we now use an int16_t instead.
This commit is contained in:
Joel Dice 2011-03-25 18:27:02 -06:00
parent 960bd28296
commit 3e93d5d337

View File

@ -326,7 +326,7 @@ class Value: public Compiler::Operand {
Site* target; Site* target;
Value* buddy; Value* buddy;
Value* nextWord; Value* nextWord;
int8_t home; int16_t home;
ValueType type; ValueType type;
uint8_t wordIndex; uint8_t wordIndex;
}; };