Skip to content

Commit

Permalink
Fixed C# Table.cs to work with Mono.
Browse files Browse the repository at this point in the history
Cast to short for mono compatibility.

Change-Id: I568059a21369b895fa52002fa231f7594f0f736c
  • Loading branch information
gregoire-astruc authored and Wouter van Oortmerssen committed Feb 23, 2015
1 parent c243aa4 commit 71e97b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/FlatBuffers/Table.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public abstract class Table
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"
Expand Down

0 comments on commit 71e97b7

Please sign in to comment.