mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 22:03:40 +00:00
Fixes for JS generator in Xcode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user