nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at release-20.03 21 lines 1.2 kB view raw
1diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/query/SizeAndSignednessVerifier.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/query/SizeAndSignednessVerifier.java 2index 23a76357fd2..f13694b6ed7 100644 3--- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/query/SizeAndSignednessVerifier.java 4+++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/query/SizeAndSignednessVerifier.java 5@@ -249,15 +249,6 @@ public final class SizeAndSignednessVerifier extends NativeInfoTreeVisitor { 6 } 7 8 private void checkSignedness(boolean isUnsigned, ResolvedJavaType type, ResolvedJavaMethod method) { 9- if (isSigned(type)) { 10- if (isUnsigned) { 11- addError("Type " + type.toJavaName(false) + " is signed, but accessed C value is unsigned", method); 12- } 13- } else if (nativeLibs.isWordBase(type)) { 14- /* every Word type other than Signed is assumed to be unsigned. */ 15- if (!isUnsigned) { 16- addError("Type " + type.toJavaName(false) + " is unsigned, but accessed C value is signed", method); 17- } 18- } 19+ 20 } 21 }