Replace C++ style comments by C ones
authorEven Rouault <even.rouault@spatialys.com>
Tue, 19 Sep 2017 16:22:07 +0000 (18:22 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Tue, 19 Sep 2017 16:22:07 +0000 (18:22 +0200)
src/lib/openjp2/image.c
src/lib/openjp2/sparse_array.c

index bf7a70194279b43af359a059c73a031d858273e1..13bcb8e45f69149fcb7063b6226de07b7b6f2d2f 100644 (file)
@@ -70,7 +70,7 @@ opj_image_t* OPJ_CALLCONV opj_image_create(OPJ_UINT32 numcmpts,
             comp->sgnd = cmptparms[compno].sgnd;
             if (comp->h != 0 &&
                     (OPJ_SIZE_T)comp->w > SIZE_MAX / comp->h / sizeof(OPJ_INT32)) {
-                // TODO event manager
+                /* TODO event manager */
                 opj_image_destroy(image);
                 return NULL;
             }
index 67212d28b9223b06b3a7bd1590de0efcb7ce16b9..9d86eb6e7793793e236f3ded5aabdbc2ba931865 100644 (file)
@@ -168,8 +168,8 @@ static OPJ_BOOL opj_sparse_array_int32_read_or_write(
                                                            +
                                                            (x - x0) * buf_col_stride;
                         if (x_incr == 4) {
-                            // Same code as general branch, but the compiler
-                            // can have an efficient memcpy()
+                            /* Same code as general branch, but the compiler */
+                            /* can have an efficient memcpy() */
                             for (j = 0; j < y_incr; j++) {
                                 memcpy(dest_ptr, src_ptr, sizeof(OPJ_INT32) * x_incr);
                                 dest_ptr += buf_line_stride;