mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-02 02:07:25 +00:00
Make Monster's Color unsigned (#5318)
- update C++ monster_test::Color to unsigned type - update Go Color:ubyte in the go_test.go - add workaround for unsigned enum in java test - sync generate.bat and generate.sh
This commit is contained in:
parent
b701c7d56e
commit
f9ebfcb9c4
37 changed files with 177 additions and 159 deletions
|
|
@ -101,7 +101,8 @@ class JavaTest {
|
|||
TestEq(pos.y(), 2.0f);
|
||||
TestEq(pos.z(), 3.0f);
|
||||
TestEq(pos.test1(), 3.0);
|
||||
TestEq(pos.test2(), Color.Green);
|
||||
// issue: int != byte
|
||||
TestEq(pos.test2(), (int) Color.Green);
|
||||
Test t = pos.test3();
|
||||
TestEq(t.a(), (short)5);
|
||||
TestEq(t.b(), (byte)6);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue