Avoid some overflow cases:
[deliverable/binutils-gdb.git] / gprof / vax.c
index c1f77df584ddd77ad8311b5de24595284e9fb07b..1a7bd8dc146535fc4ab392866dfd203399e4cfc8 100644 (file)
@@ -296,7 +296,7 @@ vax_find_call (parent, p_lowpc, p_highpc)
               *      [are there others that we miss?,
               *       e.g. arrays of pointers to functions???]
               */
-             arc_add (parent, &indirectchild, (long) 0);
+             arc_add (parent, &indirectchild, (unsigned long) 0);
              length += vax_operandlength (
                                  (struct modebyte *) (instructp + length));
              continue;
@@ -323,7 +323,7 @@ vax_find_call (parent, p_lowpc, p_highpc)
                      /*
                       *    a hit
                       */
-                     arc_add (parent, child, (long) 0);
+                     arc_add (parent, child, (unsigned long) 0);
                      length += vax_operandlength ((struct modebyte *)
                                                   (instructp + length));
                      continue;
This page took 0.023193 seconds and 4 git commands to generate.