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:
Fred Kiefer 2000-08-23 21:26:41 +00:00
parent fe5b8f94f6
commit 0704eebbc1

View file

@ -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;