Skip to content
Snippets Groups Projects
Commit 2717b150 authored by Michael Haupt's avatar Michael Haupt
Browse files

fix accuracy of RRuntime.logicalToStringNoCheck()

parent 5a872316
Branches
No related tags found
No related merge requests found
......@@ -268,7 +268,8 @@ public class RRuntime {
}
public static String logicalToStringNoCheck(byte operand) {
return operand == LOGICAL_TRUE ? STRING_TRUE : operand == LOGICAL_FALSE ? STRING_FALSE : STRING_NA;
assert operand == LOGICAL_TRUE || operand == LOGICAL_FALSE;
return operand == LOGICAL_TRUE ? STRING_TRUE : STRING_FALSE;
}
public static String logicalToString(byte operand) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment