diff options
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/values.c b/gdb/values.c index 0c3a6b9..3f9e7bb 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -676,10 +676,10 @@ unpack_double (type, valaddr, invp) { /* Unsigned -- be sure we compensate for signed LONGEST. */ #ifndef _MSC_VER - return (unsigned LONGEST) unpack_long (type, valaddr); + return (ULONGEST) unpack_long (type, valaddr); #else #if (_MSC_VER > 800) - return (unsigned LONGEST) unpack_long (type, valaddr); + return (ULONGEST) unpack_long (type, valaddr); #else /* FIXME!!! msvc22 doesn't support unsigned __int64 -> double */ return (LONGEST) unpack_long (type, valaddr); @@ -1147,8 +1147,8 @@ unpack_field_as_long (type, valaddr, fieldno) char *valaddr; int fieldno; { - unsigned LONGEST val; - unsigned LONGEST valmask; + ULONGEST val; + ULONGEST valmask; int bitpos = TYPE_FIELD_BITPOS (type, fieldno); int bitsize = TYPE_FIELD_BITSIZE (type, fieldno); int lsbcount; @@ -1168,7 +1168,7 @@ unpack_field_as_long (type, valaddr, fieldno) if ((bitsize > 0) && (bitsize < 8 * (int) sizeof (val))) { - valmask = (((unsigned LONGEST) 1) << bitsize) - 1; + valmask = (((ULONGEST) 1) << bitsize) - 1; val &= valmask; if (!TYPE_UNSIGNED (TYPE_FIELD_TYPE (type, fieldno))) { @@ -1220,9 +1220,9 @@ modify_field (addr, fieldval, bitpos, bitsize) /* Mask out old value, while avoiding shifts >= size of oword */ if (bitsize < 8 * (int) sizeof (oword)) - oword &= ~(((((unsigned LONGEST)1) << bitsize) - 1) << bitpos); + oword &= ~(((((ULONGEST)1) << bitsize) - 1) << bitpos); else - oword &= ~((~(unsigned LONGEST)0) << bitpos); + oword &= ~((~(ULONGEST)0) << bitpos); oword |= fieldval << bitpos; store_signed_integer (addr, sizeof oword, oword); |