summaryrefslogtreecommitdiff
path: root/tests/MyGame/Example/Stat.java
diff options
context:
space:
mode:
authorMaor Itzkovitch <maor.tt@gmail.com>2015-08-07 09:05:08 +0300
committerMaor Itzkovitch <maor.tt@gmail.com>2015-08-07 09:05:08 +0300
commit7196c3684249c12571cd2e16ba8e5564c57484aa (patch)
tree3a0b94bf8f99cf18f9b8f528b39f9e31eef52c65 /tests/MyGame/Example/Stat.java
parent6be146d67ffd31b26751f32c1d3b96726a67c175 (diff)
downloadflatbuffers-7196c3684249c12571cd2e16ba8e5564c57484aa.tar.gz
flatbuffers-7196c3684249c12571cd2e16ba8e5564c57484aa.tar.bz2
flatbuffers-7196c3684249c12571cd2e16ba8e5564c57484aa.zip
begin to correct C# bytebuffer behavior
Diffstat (limited to 'tests/MyGame/Example/Stat.java')
-rw-r--r--tests/MyGame/Example/Stat.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/MyGame/Example/Stat.java b/tests/MyGame/Example/Stat.java
index 23cc42a3..673729e1 100644
--- a/tests/MyGame/Example/Stat.java
+++ b/tests/MyGame/Example/Stat.java
@@ -17,7 +17,7 @@ public final class Stat extends Table {
public long val() { int o = __offset(6); return o != 0 ? bb.getLong(o + bb_pos) : 0; }
public boolean mutateVal(long val) { int o = __offset(6); if (o != 0) { bb.putLong(o + bb_pos, val); return true; } else { return false; } }
public int count() { int o = __offset(8); return o != 0 ? bb.getShort(o + bb_pos) & 0xFFFF : 0; }
- public boolean mutateCount(short count) { int o = __offset(8); if (o != 0) { bb.putShort(o + bb_pos, count); return true; } else { return false; } }
+ public boolean mutateCount(int count) { int o = __offset(8); if (o != 0) { bb.putShort(o + bb_pos, (short)count); return true; } else { return false; } }
public static int createStat(FlatBufferBuilder builder,
int id,