Replace C++ style comments by C ones
This commit is contained in:
parent
ce199f42e7
commit
d415723fd9
|
@ -70,7 +70,7 @@ opj_image_t* OPJ_CALLCONV opj_image_create(OPJ_UINT32 numcmpts,
|
||||||
comp->sgnd = cmptparms[compno].sgnd;
|
comp->sgnd = cmptparms[compno].sgnd;
|
||||||
if (comp->h != 0 &&
|
if (comp->h != 0 &&
|
||||||
(OPJ_SIZE_T)comp->w > SIZE_MAX / comp->h / sizeof(OPJ_INT32)) {
|
(OPJ_SIZE_T)comp->w > SIZE_MAX / comp->h / sizeof(OPJ_INT32)) {
|
||||||
// TODO event manager
|
/* TODO event manager */
|
||||||
opj_image_destroy(image);
|
opj_image_destroy(image);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,8 +168,8 @@ static OPJ_BOOL opj_sparse_array_int32_read_or_write(
|
||||||
+
|
+
|
||||||
(x - x0) * buf_col_stride;
|
(x - x0) * buf_col_stride;
|
||||||
if (x_incr == 4) {
|
if (x_incr == 4) {
|
||||||
// Same code as general branch, but the compiler
|
/* Same code as general branch, but the compiler */
|
||||||
// can have an efficient memcpy()
|
/* can have an efficient memcpy() */
|
||||||
for (j = 0; j < y_incr; j++) {
|
for (j = 0; j < y_incr; j++) {
|
||||||
memcpy(dest_ptr, src_ptr, sizeof(OPJ_INT32) * x_incr);
|
memcpy(dest_ptr, src_ptr, sizeof(OPJ_INT32) * x_incr);
|
||||||
dest_ptr += buf_line_stride;
|
dest_ptr += buf_line_stride;
|
||||||
|
|
Loading…
Reference in New Issue