Setting null to counter should be a no-op (#11012)
This commit is contained in:
@@ -103,8 +103,12 @@ public class LVar{
|
|||||||
|
|
||||||
public void set(LVar other){
|
public void set(LVar other){
|
||||||
isobj = other.isobj;
|
isobj = other.isobj;
|
||||||
objval = other.objval;
|
// Setting a non-numeric value to @counter must preserve its numeric field
|
||||||
numval = other.numval;
|
if(isobj){
|
||||||
|
objval = other.objval;
|
||||||
|
}else{
|
||||||
|
numval = other.numval;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean invalid(double d){
|
public static boolean invalid(double d){
|
||||||
|
|||||||
Reference in New Issue
Block a user