forked from BigfootDev/flatbuffers
[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 += namer_.Variant(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) {
|
||||
code += "L";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user