From bb72d0a06e72c506138cf9eda51a741f2346be09 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 31 Oct 2004 12:29:38 +0100 Subject: [PATCH] small optimization --- include/decimal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/decimal.h b/include/decimal.h index e1a495f1f2b..5ff0a18f085 100644 --- a/include/decimal.h +++ b/include/decimal.h @@ -76,7 +76,7 @@ int decimal_round(decimal *from, decimal *to, int new_scale, dec_round_mode mode #define decimal_string_size(dec) ((dec)->intg + (dec)->frac + ((dec)->frac > 0) + 1) /* negate a decimal */ -#define decimal_neg(dec) do { (dec)->sign=!(dec)->sign; } while(0) +#define decimal_neg(dec) do { (dec)->sign^=1; } while(0) /* conventions: