Skip to content

Commit

Permalink
DesktopShiftTb should check existence of tb ari because it is uses a …
Browse files Browse the repository at this point in the history
…Map<Integer,Integer> instead of the original TIntIntHashMap.
  • Loading branch information
yukuku committed Jul 1, 2020
1 parent 7ca3794 commit c015828
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public class DesktopShiftTb {
* Impl note: only kjv ari with flag 0x0 or 0x1. With other flags, the original ari is returned.
*/
public static int shiftFromTb(int ari) {
if (!tbToFkjv.containsKey(ari)) return ari; // original ari
int fkjv = tbToFkjv.get(ari);
if (fkjv == 0) return ari; // original ari

int flag = fkjv >> 24;
if (flag != 0 && flag != 1) return ari; // original ari
Expand Down

0 comments on commit c015828

Please sign in to comment.