mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix readAndFollowForwardLink."
This commit is contained in:
commit
008d84ffa5
@ -318,7 +318,8 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
|
||||
|
||||
@Override
|
||||
public boolean readAndFollowForwardLink() {
|
||||
final int nextAddress = mDictBuffer.readUnsignedInt24();
|
||||
final int forwardLinkPos = mDictBuffer.position();
|
||||
final int nextAddress = forwardLinkPos + BinaryDictDecoderUtils.readSInt24(mDictBuffer);
|
||||
if (nextAddress >= 0 && nextAddress < mDictBuffer.limit()) {
|
||||
mDictBuffer.position(nextAddress);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user