Change default-constructor of Value to initialize to 0. This avoids some warnings when using Value in a HashTable and a few other cases and seems to have no measurable effect.

This commit is contained in:
Luke Wagner 2010-07-05 01:59:49 -07:00
parent 477aedc0ff
commit d71c690795

View File

@ -384,7 +384,7 @@ class Value
/*** Constructors ***/
/* N.B. Value's default constructor leaves Value uninitialized */
Value() {}
Value() { data.asBits = 0; }
Value(NullTag) { setNull(); }
Value(UndefinedTag) { setUndefined(); }