summaryrefslogtreecommitdiff
path: root/include/decimal.h
diff options
context:
space:
mode:
authorserg@serg.mylan <>2004-10-31 12:29:38 +0100
committerserg@serg.mylan <>2004-10-31 12:29:38 +0100
commit65ba01382ba71c383704bc9ece6660eaffbe46e4 (patch)
tree22a8f3c3711de0ec4195604ded094ac0a6e580b7 /include/decimal.h
parentd35d0101731649ed944980e1120bb6d7d3f0c1a8 (diff)
downloadmariadb-git-65ba01382ba71c383704bc9ece6660eaffbe46e4.tar.gz
small optimization
Diffstat (limited to 'include/decimal.h')
-rw-r--r--include/decimal.h2
1 files changed, 1 insertions, 1 deletions
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: