1. libgd
  2. Untitled project
  3. gd-libgd

Commits

mattias  committed a7d0dd9

- Fixed fix :)

  • Participants
  • Parent commits d23fe4d
  • Branches GD-2.0

Comments (0)

Files changed (1)

File src/gd.c

View file
  • Ignore whitespace
 	struct seg *stack;
 	struct seg *sp;
 
-	if (!im->trueColor && (nc >= 0) && (nc > (im->colorsTotal - 1))) {
+	if (!im->trueColor && ((nc < 0) || (nc > (im->colorsTotal - 1)))) {
 		return;
 	}