8150426: Wrong cast in metadata_at_put
authorkbarrett
Tue, 23 Feb 2016 18:58:36 -0500
changeset 36359 05fb53b2a533
parent 36354 28bbe66a0498
child 36360 b8f3e1f238ff
8150426: Wrong cast in metadata_at_put Summary: Fix cast. Reviewed-by: dholmes, coleenp, jprovino Contributed-by: timo.kinnunen@gmail.com
hotspot/src/share/vm/oops/typeArrayOop.hpp
--- a/hotspot/src/share/vm/oops/typeArrayOop.hpp	Wed Feb 24 13:18:54 2016 -0500
+++ b/hotspot/src/share/vm/oops/typeArrayOop.hpp	Tue Feb 23 18:58:36 2016 -0500
@@ -129,7 +129,7 @@
   Metadata* metadata_at(int which) const {
     return (Metadata*)*long_at_addr(which); }
   void metadata_at_put(int which, Metadata* contents) {
-    *long_at_addr(which) = (long)contents;
+    *long_at_addr(which) = (jlong)contents;
   }
 #else
   Metadata* metadata_at(int which) const {