• Baptiste Lepilleur's avatar
    Java: fix unsigned default value code generation and add 'L' suffix for long default value (#4051) · 5b5fcbfc
    Baptiste Lepilleur authored
    * Java: emit "signed" equivalent of unsigned default value in generated code and add "L" suffix to long default value.
    
    * Updated generated code
    
    * Only convert ulong to "signed" equivalent. ubyte and ushort don't need specific handling as "user facing" type is int. uint need 'L' suffix as "user facing" type is long.
    
    * Added missing cast to primitive type of default value which is in "user facing" type in builder.add<type>() calls.
    
    * Do not cast default value to actual type in C#.
    5b5fcbfc
Name
Last commit
Last update
..
Any.cs Loading commit data...
Any.go Loading commit data...
Any.java Loading commit data...
Any.php Loading commit data...
Any.py Loading commit data...
Color.cs Loading commit data...
Color.go Loading commit data...
Color.java Loading commit data...
Color.php Loading commit data...
Color.py Loading commit data...
Monster.cs Loading commit data...
Monster.go Loading commit data...
Monster.java Loading commit data...
Monster.php Loading commit data...
Monster.py Loading commit data...
Stat.cs Loading commit data...
Stat.go Loading commit data...
Stat.java Loading commit data...
Stat.php Loading commit data...
Stat.py Loading commit data...
Test.cs Loading commit data...
Test.go Loading commit data...
Test.java Loading commit data...
Test.php Loading commit data...
Test.py Loading commit data...
TestSimpleTableWithEnum.cs Loading commit data...
TestSimpleTableWithEnum.go Loading commit data...
TestSimpleTableWithEnum.java Loading commit data...
TestSimpleTableWithEnum.php Loading commit data...
TestSimpleTableWithEnum.py Loading commit data...
Vec3.cs Loading commit data...
Vec3.go Loading commit data...
Vec3.java Loading commit data...
Vec3.php Loading commit data...
Vec3.py Loading commit data...
__init__.py Loading commit data...