Fixed C# Table.cs to work with Mono.

Cast to short for mono compatibility.

Change-Id: I568059a21369b895fa52002fa231f7594f0f736c
This commit is contained in:
Grégoire Astruc 2015-02-18 22:49:13 +01:00 committed by Wouter van Oortmerssen
parent c243aa4e15
commit 71e97b7123
1 changed files with 1 additions and 1 deletions

View File

@ -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"