diff options
-rw-r--r-- | libart/src/main/java/sun/misc/Unsafe.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libart/src/main/java/sun/misc/Unsafe.java b/libart/src/main/java/sun/misc/Unsafe.java index aa7b6de..0a4d8b2 100644 --- a/libart/src/main/java/sun/misc/Unsafe.java +++ b/libart/src/main/java/sun/misc/Unsafe.java @@ -101,7 +101,7 @@ public final class Unsafe { throw new IllegalArgumentException("Valid for array classes only: " + clazz); } // TODO: make the following not specific to the object model. - if (!clazz.isPrimitive()) { + if (!component.isPrimitive()) { return 4; } else if (component == long.class || component == double.class) { return 8; |