!3470 修复NUMERIC_SIGN宏在值为Nan时获取错误的BUG
Merge pull request !3470 from wanghao19920907/master_fixbug_numeric
This commit is contained in:
@ -43,7 +43,7 @@
|
||||
#define NUMERIC_SHORT_SIGN_MASK 0x2000
|
||||
#define NUMERIC_DSCALE_MASK 0x3FFF
|
||||
#define NUMERIC_SIGN(n) \
|
||||
(NUMERIC_HEADER_IS_SHORT(n) \
|
||||
(NUMERIC_IS_SHORT(n) \
|
||||
? (((n)->choice.n_short.n_header & NUMERIC_SHORT_SIGN_MASK) ? NUMERIC_NEG : NUMERIC_POS) \
|
||||
: NUMERIC_FLAGBITS(n))
|
||||
#define NUMERIC_DSCALE(n) \
|
||||
|
||||
@ -96,7 +96,7 @@
|
||||
#define NUMERIC_DSCALE_MASK 0x3FFF
|
||||
|
||||
#define NUMERIC_SIGN(n) \
|
||||
(NUMERIC_HEADER_IS_SHORT(n) \
|
||||
(NUMERIC_IS_SHORT(n) \
|
||||
? (((n)->choice.n_short.n_header & NUMERIC_SHORT_SIGN_MASK) ? NUMERIC_NEG : NUMERIC_POS) \
|
||||
: NUMERIC_FLAGBITS(n))
|
||||
#define NUMERIC_DSCALE(n) \
|
||||
|
||||
Reference in New Issue
Block a user