From bddbc3a62a0c6b9823e54649c5322240e223ca47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Fri, 24 Sep 2010 13:52:23 +0000 Subject: [PATCH] [INTERPRETER] * BUG: Fix a compilation warning on 32 bits systems. [GB.SDL] * BUG: Fix a function that was not returning any value. git-svn-id: svn://localhost/gambas/trunk@3239 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.sdl/src/SDLfont.cpp | 1 + main/share/gb_common_swap.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gb.sdl/src/SDLfont.cpp b/gb.sdl/src/SDLfont.cpp index 566498de8..0e7e2d706 100644 --- a/gb.sdl/src/SDLfont.cpp +++ b/gb.sdl/src/SDLfont.cpp @@ -253,6 +253,7 @@ void SDLfont::SetFontStrikeout(bool state) bool SDLfont::IsFontStrikeout(void ) { // return (TTF_GetFontStyle(hSDLfont) & TTF_STYLE_STRIKETHROUGH); + return false; } void SDLfont::SetFontUnderline(bool state) diff --git a/main/share/gb_common_swap.h b/main/share/gb_common_swap.h index c117232ac..52ccd102e 100644 --- a/main/share/gb_common_swap.h +++ b/main/share/gb_common_swap.h @@ -34,7 +34,7 @@ void SWAP_double(double *val); #if OS_64BITS #define SWAP_pointer(_val) SWAP_int64(_val) #else -#define SWAP_pointer(_val) SWAP_int(_val) +#define SWAP_pointer(_val) SWAP_int(((int *)(void *)_val)) #endif #endif