aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 954f620..0c3a6b9 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -675,7 +675,16 @@ unpack_double (type, valaddr, invp)
else if (nosign)
{
/* Unsigned -- be sure we compensate for signed LONGEST. */
+#ifndef _MSC_VER
return (unsigned LONGEST) unpack_long (type, valaddr);
+#else
+#if (_MSC_VER > 800)
+ return (unsigned LONGEST) unpack_long (type, valaddr);
+#else
+ /* FIXME!!! msvc22 doesn't support unsigned __int64 -> double */
+ return (LONGEST) unpack_long (type, valaddr);
+#endif
+#endif /* _MSC_VER */
}
else
{