Revision: 42179
http://brlcad.svn.sourceforge.net/brlcad/?rev=42179&view=rev
Author: erikgreenwald
Date: 2011-01-12 22:15:20 +0000 (Wed, 12 Jan 2011)
Log Message:
-----------
signed/unsigned comparison fixes
Modified Paths:
--------------
brlcad/trunk/src/libfb/if_ogl.c
Modified: brlcad/trunk/src/libfb/if_ogl.c
===================================================================
--- brlcad/trunk/src/libfb/if_ogl.c 2011-01-12 22:07:58 UTC (rev 42178)
+++ brlcad/trunk/src/libfb/if_ogl.c 2011-01-12 22:15:20 UTC (rev 42179)
@@ -1875,7 +1875,7 @@
if (y >= ifp->if_height)
break;
- if (count >= ifp->if_width-x)
+ if (count >= (size_t)(ifp->if_width-x))
scan_count = ifp->if_width-x;
else
scan_count = count;
@@ -1939,8 +1939,8 @@
if (y >= ifp->if_height)
break;
- if (pix_count >= ifp->if_width-x)
- scan_count = ifp->if_width-x;
+ if (pix_count >= (size_t)(ifp->if_width-x))
+ scan_count = (size_t)(ifp->if_width-x);
else
scan_count = pix_count;
@@ -1995,7 +1995,7 @@
fb_log("Warning, ogl_write: glXMakeCurrent unsuccessful.\n");
}
- if (xstart + count < ifp->if_width) {
+ if (xstart + count < (size_t)ifp->if_width) {
ogl_xmit_scanlines(ifp, ybase, 1, xstart, count);
if (OGL(ifp)->copy_flag) {
/* repaint one scanline from backbuffer */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits