mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 17:42:42 +00:00
[Java] Generate Longs from uint enums (#8727)
Co-authored-by: Neville Dipale <neville@urbanlogiq.com> Co-authored-by: Max Burke <max@urbanlogiq.com>
This commit is contained in:
@@ -445,7 +445,8 @@ class JavaGenerator : public BaseGenerator {
|
|||||||
code += " ";
|
code += " ";
|
||||||
code += namer_.Variant(ev) + " = ";
|
code += namer_.Variant(ev) + " = ";
|
||||||
code += enum_def.ToString(ev);
|
code += enum_def.ToString(ev);
|
||||||
if (enum_def.underlying_type.base_type == BASE_TYPE_LONG ||
|
if (enum_def.underlying_type.base_type == BASE_TYPE_UINT ||
|
||||||
|
enum_def.underlying_type.base_type == BASE_TYPE_LONG ||
|
||||||
enum_def.underlying_type.base_type == BASE_TYPE_ULONG) {
|
enum_def.underlying_type.base_type == BASE_TYPE_ULONG) {
|
||||||
code += "L";
|
code += "L";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user