mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
small optimization
This commit is contained in:
parent
d35d010173
commit
65ba01382b
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue