: Fix for PR 52123 additional patch for 32bit mingw

Submitted by Rainer Emrich on Feb. 13, 2013, 5:58 p.m.

Details

Message ID 511BD45A.7050005@emrich-ebersheim.de
State New
Headers show

Commit Message

Rainer Emrich Feb. 13, 2013, 5:58 p.m.
Here's a simple additional patch against trunk for 32bit mingw.

OK to apply?

Rainer

2013-02-13  Rainer Emrich  <rainer@emrich-ebersheim.de>

	PR target/52123
	* tracebak.c: Cast from pointer via FARPROC

Comments

Arnaud Charlet Feb. 13, 2013, 5:59 p.m.
> Here's a simple additional patch against trunk for 32bit mingw.
> 
> OK to apply?

OK, thanks.

> Rainer
> 
> 2013-02-13  Rainer Emrich  <rainer@emrich-ebersheim.de>
> 
> 	PR target/52123
> 	* tracebak.c: Cast from pointer via FARPROC

Patch hide | download patch | download mbox

Index: ada/tracebak.c
===================================================================
--- ada/tracebak.c      (revision 195803)
+++ ada/tracebak.c      (working copy)
@@ -415,7 +415,7 @@  struct layout

 #if defined (__WIN32)
 #include <windows.h>
-#define IS_BAD_PTR(ptr) (IsBadCodePtr((void *)ptr))
+#define IS_BAD_PTR(ptr) (IsBadCodePtr((FARPROC)ptr))
 #elif defined (sun)
 #define IS_BAD_PTR(ptr) ((unsigned long)ptr == -1UL)
 #else