Revision: 48517
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48517&view=rev
Author:   erikgreenwald
Date:     2012-01-12 16:35:50 +0000 (Thu, 12 Jan 2012)
Log Message:
-----------
force addr/phony to unsigned explicitely to avoid coverity warning about a 
possible negative later. CID 368

Modified Paths:
--------------
    brlcad/trunk/src/librt/db5_io.c

Modified: brlcad/trunk/src/librt/db5_io.c
===================================================================
--- brlcad/trunk/src/librt/db5_io.c     2012-01-12 16:29:16 UTC (rev 48516)
+++ brlcad/trunk/src/librt/db5_io.c     2012-01-12 16:35:50 UTC (rev 48517)
@@ -884,7 +884,7 @@
     }
 
     /* Second, obtain storage for final object */
-    if (ep->ext_nbytes != dp->d_len || dp->d_addr == RT_DIR_PHONY_ADDR) {
+    if (ep->ext_nbytes != dp->d_len || (size_t)dp->d_addr == 
(size_t)RT_DIR_PHONY_ADDR) {
        if (db5_realloc(dbip, dp, ep) < 0) {
            bu_log("db_put_external(%s) db_realloc5() failed\n", dp->d_namep);
            return -5;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to