mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
small optimization
This commit is contained in:
parent
b4d0ae2966
commit
bb72d0a06e
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…
Add table
Add a link
Reference in a new issue