From: Peter Johnson Date: Mon, 23 Sep 2002 16:29:34 +0000 (-0000) Subject: InternalError on unrecognized operations rather than just dropping them. X-Git-Tag: v0.2.0~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f8f5b128f6cb8bf619e94fe750cea38c2406d26;p=yasm InternalError on unrecognized operations rather than just dropping them. svn path=/trunk/yasm/; revision=707 --- diff --git a/libyasm/intnum.c b/libyasm/intnum.c index f91fff98..45da0c7a 100644 --- a/libyasm/intnum.c +++ b/libyasm/intnum.c @@ -435,6 +435,8 @@ intnum_calc(intnum *acc, ExprOp op, intnum *operand) if (result) BitVector_Copy(result, op1); break; + default: + InternalError(_("invalid operation in intnum calculation")); } /* If we were doing a bitvector computation... */ diff --git a/src/intnum.c b/src/intnum.c index f91fff98..45da0c7a 100644 --- a/src/intnum.c +++ b/src/intnum.c @@ -435,6 +435,8 @@ intnum_calc(intnum *acc, ExprOp op, intnum *operand) if (result) BitVector_Copy(result, op1); break; + default: + InternalError(_("invalid operation in intnum calculation")); } /* If we were doing a bitvector computation... */