From bd72745ff9364729b1013916b5bfe2fd506240c6 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 27 Nov 2009 21:01:27 -0700 Subject: [PATCH] fix off-by-one error in intrinsic() --- src/compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile.cpp b/src/compile.cpp index aeb5e3722b..f224d9f5e1 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -2934,7 +2934,7 @@ bool intrinsic(MyThread* t, Frame* frame, object target) { #define MATCH(name, constant) \ - (byteArrayLength(t, name) - 1 == sizeof(constant) \ + (byteArrayLength(t, name) == sizeof(constant) \ and strcmp(reinterpret_cast(&byteArrayBody(t, name, 0)), \ constant) == 0)