chiark / gitweb /
add a brace to make it easier to add debug stuff
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 6 Jun 2009 19:46:22 +0000 (20:46 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 6 Jun 2009 19:46:22 +0000 (20:46 +0100)
pctb/structure.h

index b246c87..c6a8c9a 100644 (file)
@@ -32,11 +32,12 @@ CanonImage *alloc_canon_image(int w, int h);
         const CanonColourInfo *cci;                            \
         unsigned long rgb;                                     \
        COMPUTE_RGB;                                            \
-       for (cci=canoncolourinfos; cci->c; cci++)               \
+       for (cci=canoncolourinfos; cci->c; cci++) {             \
          if (cci->rgb == rgb) {                                \
            (im)->d[y*(w) + x]= cci->c;                         \
            break;                                              \
          }                                                     \
+       }                                                       \
       }                                                                \
       if (DEBUGP(rect)) {                                      \
        fprintf(debug, "%4d ",y);                               \