Change addJumpIfR0{Greater|Less}Than() method to take long argument
Bug: 324141731
Test: TH
Change-Id: I97e9720381f4fe1d5495ffd700684283260b121a
diff --git a/src/android/net/apf/ApfV4Generator.java b/src/android/net/apf/ApfV4Generator.java
index f043885..e8d3e6d 100644
--- a/src/android/net/apf/ApfV4Generator.java
+++ b/src/android/net/apf/ApfV4Generator.java
@@ -884,7 +884,7 @@
* Add an instruction to the end of the program to jump to {@code target} if register R0's
* value is greater than {@code value}.
*/
- public ApfV4Generator addJumpIfR0GreaterThan(int val, String tgt) {
+ public ApfV4Generator addJumpIfR0GreaterThan(long val, String tgt) {
return append(new Instruction(Opcodes.JGT).addUnsigned(val).setTargetLabel(tgt));
}
@@ -892,7 +892,7 @@
* Add an instruction to the end of the program to jump to {@code target} if register R0's
* value is less than {@code value}.
*/
- public ApfV4Generator addJumpIfR0LessThan(int val, String tgt) {
+ public ApfV4Generator addJumpIfR0LessThan(long val, String tgt) {
return append(new Instruction(Opcodes.JLT).addUnsigned(val).setTargetLabel(tgt));
}