Fix broken Java/C# codegen

This commit is contained in:
Wouter van Oortmerssen
2018-03-05 16:37:04 -08:00
parent 3a62813f0e
commit 4bc6de9a88
8 changed files with 44 additions and 39 deletions

View File

@@ -39,7 +39,7 @@ public struct Referrable : IFlatbufferObject
return builder.CreateVectorOfTables(offsets);
}
public static Referrable? __lookup_by_key(Referrable obj, int vectorLocation, ulong key, ByteBuffer bb) {
public static Referrable? __lookup_by_key(int vectorLocation, ulong key, ByteBuffer bb) {
int span = bb.GetInt(vectorLocation - 4);
int start = 0;
while (span != 0) {
@@ -53,7 +53,7 @@ public struct Referrable : IFlatbufferObject
start += middle;
span -= middle;
} else {
return (obj == null ? new Referrable(), obj).__assign(tableOffset, bb);
return new Referrable().__assign(tableOffset, bb);
}
}
return null;