Reduced the size in bytes of Variant slightly by allowing the compiler to better pack its member variables together in memory.

This commit is contained in:
Alex Szpakowski
2016-02-14 19:51:55 -04:00
parent 7ea259e38b
commit 5d7425b60e
+4 -3
View File
@@ -93,10 +93,13 @@ private:
FUSERDATA,
NIL,
TABLE
} type;
};
static const int MAX_SMALL_STRING_LENGTH = 15;
Type type;
love::Type udatatype;
union Data
{
bool boolean;
@@ -111,8 +114,6 @@ private:
} smallstring;
} data;
love::Type udatatype;
}; // Variant
} // love