* ada-lang.c (assign_component): Use platform-specific integer type
[deliverable/binutils-gdb.git] / gdb / ax-gdb.c
index 80f6cbfde74ab96622517e98912891b55eed6cf2..4edf8f25b179342de0de91c4219c2aa54b9a69dd 100644 (file)
@@ -1642,7 +1642,8 @@ gen_expr (struct expression *exp, union exp_element **pc,
     case UNOP_NEG:
       (*pc)++;
       /* -FOO is equivalent to 0 - FOO.  */
-      gen_int_literal (ax, &value1, (LONGEST) 0, builtin_type_int8);
+      gen_int_literal (ax, &value1, 0,
+                      builtin_type (exp->gdbarch)->builtin_int);
       gen_usual_unary (exp, ax, &value1);      /* shouldn't do much */
       gen_expr (exp, pc, ax, &value2);
       gen_usual_unary (exp, ax, &value2);
This page took 0.023959 seconds and 4 git commands to generate.