Andrew Talbot : winex11.drv: Declare variable signed to accept possible negative return value (Coverity ).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 5 07:45:05 CST 2007


Module: wine
Branch: master
Commit: e463110e22422c330e2126d3dfe36b1f7554ede3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e463110e22422c330e2126d3dfe36b1f7554ede3

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Sat Feb  3 22:39:18 2007 +0000

winex11.drv: Declare variable signed to accept possible negative return value (Coverity).

---

 dlls/winex11.drv/opengl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index aaeb0a3..ac0c8ba 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1923,7 +1923,7 @@ static HPBUFFERARB WINAPI X11DRV_wglCrea
     GLXFBConfig* cfgs = NULL;
     int nCfgs = 0;
     int attribs[256];
-    unsigned nAttribs = 0;
+    int nAttribs = 0;
     int fmt_index = 0;
 
     TRACE("(%p, %d, %d, %d, %p)\n", hdc, iPixelFormat, iWidth, iHeight, piAttribList);




More information about the wine-cvs mailing list