Revision: 54953
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54953&view=rev
Author:   brlcad
Date:     2013-03-29 02:47:28 +0000 (Fri, 29 Mar 2013)
Log Message:
-----------
need signed comparison now to match buflines

Modified Paths:
--------------
    brlcad/trunk/src/util/bwcrop.c

Modified: brlcad/trunk/src/util/bwcrop.c
===================================================================
--- brlcad/trunk/src/util/bwcrop.c      2013-03-29 02:35:23 UTC (rev 54952)
+++ brlcad/trunk/src/util/bwcrop.c      2013-03-29 02:47:28 UTC (rev 54953)
@@ -246,7 +246,7 @@
     init_buffer(scanlen);
 
     /* Check for silly buffer syndrome */
-    if ((unsigned)abs((int)(ury - uly)) > buflines/2 || 
(unsigned)abs((int)(lry - lly)) > buflines/2) {
+    if ((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry 
- lly)) > buflines/2) {
        fprintf(stderr, "bwcrop: Warning: You are skewing enough in the y 
direction\n");
        fprintf(stderr, "bwcrop: relative to my buffer size that I will exhibit 
silly\n");
        fprintf(stderr, "bwcrop: buffer syndrome (two replacements per 
scanline).\n");

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


------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to