Changed (int) cast to (HOST_WIDE_INT) to prevent warnings on amd64.
authorJustin Seyster <jseyster@cs.sunysb.edu>
Fri, 9 Jul 2010 21:19:33 +0000 (17:19 -0400)
committerJustin Seyster <jseyster@cs.sunysb.edu>
Fri, 9 Jul 2010 21:19:33 +0000 (17:19 -0400)
Some style changes.

src/aop-weave.c

index 788321dac518d48ce00be121d6cd25f2e6b0f242..492866699cc2541d1f50b45b386ea87a78918de7 100644 (file)
@@ -121,7 +121,7 @@ build_gcc_call (const char *func_name, tree return_type,
       const char *str_cst;
       int int_cst;
       float float_cst;
-      char float_buf[25] = {0};
+      char float_buf[25];
       REAL_VALUE_TYPE r;
       void *ptr_cst;
       struct aop_dynval *dv;
@@ -140,14 +140,15 @@ build_gcc_call (const char *func_name, tree return_type,
          break;
        case ATA_FLOAT_CST:
          float_cst = va_arg (argp, double);
-         snprintf (float_buf, sizeof(float_buf), "%A", float_cst);
+         snprintf (float_buf, sizeof (float_buf), "%A", float_cst);
          real_from_string (&r, (const char *)float_buf);
          new_arg = build_real (float_type_node, r);
          VEC_safe_push (tree, heap, arg_list, new_arg);
          break;
        case ATA_VOIDP_CST:
          ptr_cst = va_arg (argp, void *);
-         new_arg = build_int_cst (build_pointer_type (void_type_node), (int)ptr_cst);
+         new_arg = build_int_cst (build_pointer_type (void_type_node),
+                                  (HOST_WIDE_INT)ptr_cst);
          VEC_safe_push (tree, heap, arg_list, new_arg);
          break;
        case ATA_DYNVAL: