diff -r 023711891116 -r 48cffae8c9e0 src/Types.h --- a/src/Types.h Sun Aug 12 13:22:56 2012 -0700 +++ b/src/Types.h Sun Aug 12 20:48:49 2012 -0700 @@ -301,7 +301,7 @@ PrimitiveType type_; union { int i_; - bool b_; + float f_; }; public: @@ -311,10 +311,10 @@ b.i_ = i; return b; } - static BoxedPrimitive Bool(bool v) { + static BoxedPrimitive Float(float f) { BoxedPrimitive b; - b.type_ = PrimitiveType_Bool; - b.b_ = v; + b.type_ = PrimitiveType_Float; + b.f_ = f; return b; } @@ -325,9 +325,9 @@ assert(type() == PrimitiveType_Int32); return i_; } - bool toBool() const { - assert(type() == PrimitiveType_Bool); - return b_; + float toFloat() const { + assert(type() == PrimitiveType_Float); + return f_; } };