mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-21 23:48:29 +00:00
[Kotlin] Fix union vector accessor after change in Java API (#5605)
Kolin uses java library as dependency, which changed the way it access union vector recently
(e365c502ff).
This changes updates kotlin code generation to match Java's changes.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
3c7b660d62
commit
8526e12d73
@@ -30,7 +30,7 @@ class Movie : Table() {
|
||||
}
|
||||
}
|
||||
fun mainCharacter(obj: Table) : Table? {
|
||||
val o = __offset(6); return if (o != 0) __union(obj, o) else null
|
||||
val o = __offset(6); return if (o != 0) __union(obj, o + bb_pos) else null
|
||||
}
|
||||
fun charactersType(j: Int) : UByte {
|
||||
val o = __offset(8)
|
||||
|
||||
Reference in New Issue
Block a user