aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2013-03-27 08:57:09 +0000
committerPierre Muller <muller@sourceware.org>2013-03-27 08:57:09 +0000
commit40653b35683fa5de89f40ebea274d2bb375a62b0 (patch)
treefcaf0d5a184023a848275f2e1e09d8170da168c4 /gdb/windows-nat.c
parent96811e3b4b503f7e6b4b0cd4a1662f761bcf6fc8 (diff)
downloadgdb-40653b35683fa5de89f40ebea274d2bb375a62b0.zip
gdb-40653b35683fa5de89f40ebea274d2bb375a62b0.tar.gz
gdb-40653b35683fa5de89f40ebea274d2bb375a62b0.tar.bz2
* windows-nat.c (handle_output_debug_string): Avoid typecast
from integer of different size warning.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 24d4b56..805ab30 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -992,7 +992,7 @@ handle_output_debug_string (struct target_waitstatus *ourstatus)
retval = strtoul (p, &p, 0);
if (!retval)
retval = main_thread_id;
- else if ((x = (LPCVOID) strtoull (p, NULL, 0))
+ else if ((x = (LPCVOID) (uintptr_t) strtoull (p, NULL, 0))
&& ReadProcessMemory (current_process_handle, x,
&saved_context,
__COPY_CONTEXT_SIZE, &n)