cvs: gd /libgd gd.c

[email protected] ("Mattias Bengtsson") Wed, 08 Aug 2007 19:51:06 -0000
Newsgroups php.gd.cvs
Message-ID <cvsmattias1186602666@cvsserver>
mattias		Wed Aug  8 19:51:06 2007 UTC

  Modified files:              
    /gd/libgd	gd.c 
  Log:
  - it has come clear that nc can be negative afterall
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.66&r2=1.67&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.66 gd/libgd/gd.c:1.67
--- gd/libgd/gd.c:1.66	Wed Aug  8 18:28:55 2007
+++ gd/libgd/gd.c	Wed Aug  8 19:51:06 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.66 2007/08/08 18:28:55 mattias Exp $ */
+/* $Id: gd.c,v 1.67 2007/08/08 19:51:06 mattias Exp $ */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -1911,7 +1911,7 @@
 	struct seg *stack;
 	struct seg *sp;
 
-	if (!im->trueColor && ((nc < 0) || (nc > (im->colorsTotal - 1)))) {
+	if (!im->trueColor && nc > (im->colorsTotal - 1)) {
 		return;
 	}