diff options
author | Pierre Muller <muller@ics.u-strasbg.fr> | 2013-03-27 08:57:09 +0000 |
---|---|---|
committer | Pierre Muller <muller@ics.u-strasbg.fr> | 2013-03-27 08:57:09 +0000 |
commit | e00281e7cc90a470a74a48de6b5c56d090a6d30c (patch) | |
tree | 2d033e8a196d25ff2509e6e18518d0749e3be81b /gdb/windows-nat.c | |
parent | cc75345bbbf80985832f1f9cc7bfeb95d24933f6 (diff) | |
download | gdb-e00281e7cc90a470a74a48de6b5c56d090a6d30c.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 24d4b569558..805ab303187 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) |