* windows-nat.c (handle_output_debug_string): Avoid typecast
[deliverable/binutils-gdb.git] / gdb / windows-nat.c
index 24d4b569558a7642f8cbf75e85c566a1e0ca05ee..805ab3031870e5d8169fdf32d431e831ff89cc8f 100644 (file)
@@ -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)
This page took 0.02512 seconds and 4 git commands to generate.