chiark / gitweb /
add a brace to make it easier to add debug stuff
[ypp-sc-tools.db-live.git] / 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);                               \