Fixes for JS generator in Xcode

This commit is contained in:
Wouter van Oortmerssen
2015-10-19 16:05:39 -07:00
parent 1917e577a2
commit ace304513f
3 changed files with 10 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ template<typename T> void Print(T val, Type type, int /*indent*/,
}
if (type.base_type == BASE_TYPE_BOOL) {
text += val ? "true" : "false";
text += val != 0 ? "true" : "false";
} else {
text += NumToString(val);
}