Skip to content

Commit 2f16a24

Browse files
committed
fix C89 violation
1 parent 46221b1 commit 2f16a24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/6model/reprs/P6bigint.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,13 @@ static void set_int(PARROT_INTERP, PMC *obj, INTVAL value) {
124124
/* Used with boxing. Gets an integer value, for representations that can
125125
* hold one. */
126126
static INTVAL get_int(PARROT_INTERP, PMC *obj) {
127+
INTVAL ret;
127128
mp_int i = ((P6bigintInstance *)PMC_data(obj))->i;
128129
if (MP_LT == mp_cmp_d(&i, 0)) {
129130
mp_int neg;
130131
mp_init(&neg);
131132
mp_neg(&i, &neg);
132-
INTVAL ret = -mp_get_int(&neg);
133+
ret = -mp_get_int(&neg);
133134
mp_clear(&neg);
134135
return ret;
135136
}

0 commit comments

Comments
 (0)