Fixed C# Table.cs to work with Mono.
Cast to short for mono compatibility. Change-Id: I568059a21369b895fa52002fa231f7594f0f736c
This commit is contained in:
parent
c243aa4e15
commit
71e97b7123
|
@ -32,7 +32,7 @@ namespace FlatBuffers
|
|||
protected int __offset(int vtableOffset)
|
||||
{
|
||||
int vtable = bb_pos - bb.GetInt(bb_pos);
|
||||
return vtableOffset < bb.GetShort(vtable) ? bb.GetShort(vtable + vtableOffset) : 0;
|
||||
return vtableOffset < bb.GetShort(vtable) ? (int)bb.GetShort(vtable + vtableOffset) : 0;
|
||||
}
|
||||
|
||||
// Retrieve the relative offset stored at "offset"
|
||||
|
|
Loading…
Reference in New Issue