diff options
author | serg@serg.mylan <> | 2004-10-31 12:29:38 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2004-10-31 12:29:38 +0100 |
commit | 65ba01382ba71c383704bc9ece6660eaffbe46e4 (patch) | |
tree | 22a8f3c3711de0ec4195604ded094ac0a6e580b7 /include/decimal.h | |
parent | d35d0101731649ed944980e1120bb6d7d3f0c1a8 (diff) | |
download | mariadb-git-65ba01382ba71c383704bc9ece6660eaffbe46e4.tar.gz |
small optimization
Diffstat (limited to 'include/decimal.h')
-rw-r--r-- | include/decimal.h | 2 |
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: |