From 71e97b712306980f95a86e6770b0dd18c9915593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Astruc?= Date: Wed, 18 Feb 2015 22:49:13 +0100 Subject: [PATCH] Fixed C# Table.cs to work with Mono. Cast to short for mono compatibility. Change-Id: I568059a21369b895fa52002fa231f7594f0f736c --- net/FlatBuffers/Table.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/FlatBuffers/Table.cs b/net/FlatBuffers/Table.cs index f13311130..d6396a6f7 100644 --- a/net/FlatBuffers/Table.cs +++ b/net/FlatBuffers/Table.cs @@ -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"