mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Use signed char for exponent, as char may be signed on some machines
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7237 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fe5b8f94f6
commit
0704eebbc1
1 changed files with 3 additions and 3 deletions
|
@ -57,15 +57,15 @@ typedef enum {
|
|||
#define NSDecimalNoScale 128
|
||||
|
||||
typedef struct {
|
||||
char exponent; /* Signed exponent - -128 to 127 */
|
||||
signed char exponent; /* Signed exponent - -128 to 127 */
|
||||
BOOL isNegative; /* Is this negative? */
|
||||
BOOL validNumber; /* Is this a valid number? */
|
||||
#ifdef HAVE_GMP
|
||||
mp_size_t size;
|
||||
mp_limb_t lMantissa[NSDecimalMaxSize];
|
||||
#else
|
||||
char length; /* digits in mantissa. */
|
||||
char cMantissa[NSDecimalMaxDigit];
|
||||
unsigned char length; /* digits in mantissa. */
|
||||
unsigned char cMantissa[NSDecimalMaxDigit];
|
||||
#endif
|
||||
} NSDecimal;
|
||||
|
||||
|
|
Loading…
Reference in a new issue