Fix a nit spotted by 64bit IRIX compilation: a (64-bit) pointer
Jarkko Hietaniemi [Sat, 8 Jul 2000 02:45:40 +0000 (02:45 +0000)]
was cast to an unsigned (32-bit) integer with wild abandon.

p4raw-id: //depot/cfgperl@6326

ext/Devel/DProf/DProf.xs

index 31e984f..7167a00 100644 (file)
@@ -502,7 +502,7 @@ prof_record(pTHX)
 static void
 check_depth(pTHX_ void *foo)
 {
-    U32 need_depth = (U32)foo;
+    U32 need_depth = PTR2UV(foo);
     if (need_depth != g_depth) {
        if (need_depth > g_depth) {
            warn("garbled call depth when profiling");