[svn:parrot] r41978 - trunk/src/runcore

chromatic at svn.parrot.org chromatic at svn.parrot.org
Wed Oct 21 18:35:31 UTC 2009


Author: chromatic
Date: Wed Oct 21 18:35:30 2009
New Revision: 41978
URL: https://trac.parrot.org/parrot/changeset/41978

Log:
[runcore] Fixed a compiler warning in runops_profiling_core().  Casts, bah.

Modified:
   trunk/src/runcore/profiling.c

Modified: trunk/src/runcore/profiling.c
==============================================================================
--- trunk/src/runcore/profiling.c	Wed Oct 21 17:59:52 2009	(r41977)
+++ trunk/src/runcore/profiling.c	Wed Oct 21 18:35:30 2009	(r41978)
@@ -258,8 +258,10 @@
             Parrot_ex_throw_from_c_args(interp, NULL, 1,
                     "attempt to access code outside of current code segment");
 
-        preop_line = PTR2INTVAL(
-                parrot_hash_get(interp, runcore->line_cache, CONTEXT(interp)->current_pc));
+        preop_line = hash_value_to_int(interp, runcore->line_cache,
+            parrot_hash_get(interp, runcore->line_cache,
+                        CONTEXT(interp)->current_pc));
+
         if (preop_line == 0) {
             preop_line = Parrot_Sub_get_line_from_pc(interp,
                     Parrot_pcc_get_sub(interp, CURRENT_CONTEXT(interp)),


More information about the parrot-commits mailing list