From 3e93d5d337eed59cd63b8057f2e6298ced726a2d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 25 Mar 2011 18:27:02 -0600 Subject: [PATCH] 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. --- src/compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index 2deeffe5a7..a5f6aeb373 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -326,7 +326,7 @@ class Value: public Compiler::Operand { Site* target; Value* buddy; Value* nextWord; - int8_t home; + int16_t home; ValueType type; uint8_t wordIndex; };