From 865b149540c3cf60cd04097a629e65243ee62aa3 Mon Sep 17 00:00:00 2001 From: spanne Date: Fri, 1 Jul 2005 11:44:53 +0000 Subject: [PATCH] Silenced a signed/unsigned mismatched via a cast. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@653 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/ChangeLog | 2 ++ freeglut/freeglut/src/freeglut_input_devices.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/freeglut/freeglut/ChangeLog b/freeglut/freeglut/ChangeLog index 72b5b5d..7b630b1 100644 --- a/freeglut/freeglut/ChangeLog +++ b/freeglut/freeglut/ChangeLog @@ -1079,3 +1079,5 @@ minimizing a window). (278) MinGW is lacking a prototype for ChangeDisplaySettingsEx, so supply one in this case. Note that this should better be handled via autoconf than via cpp. + +(279) Silenced a signed/unsigned mismatched via a cast. diff --git a/freeglut/freeglut/src/freeglut_input_devices.c b/freeglut/freeglut/src/freeglut_input_devices.c index a53a81b..b5a9144 100755 --- a/freeglut/freeglut/src/freeglut_input_devices.c +++ b/freeglut/freeglut/src/freeglut_input_devices.c @@ -147,7 +147,7 @@ void fgInitialiseInputDevices ( void ) DWORD type = REG_SZ; HKEY key; if (RegOpenKeyA(HKEY_LOCAL_MACHINE,"SOFTWARE\\FreeGLUT",&key)==ERROR_SUCCESS) { - if (RegQueryValueExA(key,"DialboxSerialPort",NULL,&type,devname,&size)==ERROR_SUCCESS){ + if (RegQueryValueExA(key,"DialboxSerialPort",NULL,&type,(LPBYTE)devname,&size)==ERROR_SUCCESS){ dial_device=devname; } RegCloseKey(key);