summaryrefslogtreecommitdiff
path: root/jcparam.c
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2014-05-18 19:04:03 +0000
committerDRC <dcommander@users.sourceforge.net>2014-05-18 19:04:03 +0000
commit5de454b291f48382648a5d1dc2aa0fca8b5786d4 (patch)
treec2cf7aca4212a857dc653aa6e92cff6c8b06fa32 /jcparam.c
parent5033f3e19a31e8ad40c1a79700365aefe5664494 (diff)
libjpeg-turbo has never supported non-ANSI compilers, so get rid of the crufty SIZEOF() macro. It was not being used consistently anyhow, so it would not have been possible to build prior releases of libjpeg-turbo using the broken compilers for which that macro was designed.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1313 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jcparam.c')
-rw-r--r--jcparam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jcparam.c b/jcparam.c
index ba81108..3194c9d 100644
--- a/jcparam.c
+++ b/jcparam.c
@@ -192,7 +192,7 @@ jpeg_set_defaults (j_compress_ptr cinfo)
if (cinfo->comp_info == NULL)
cinfo->comp_info = (jpeg_component_info *)
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,
- MAX_COMPONENTS * SIZEOF(jpeg_component_info));
+ MAX_COMPONENTS * sizeof(jpeg_component_info));
/* Initialize everything not dependent on the color space */
@@ -498,7 +498,7 @@ jpeg_simple_progression (j_compress_ptr cinfo)
cinfo->script_space_size = MAX(nscans, 10);
cinfo->script_space = (jpeg_scan_info *)
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,
- cinfo->script_space_size * SIZEOF(jpeg_scan_info));
+ cinfo->script_space_size * sizeof(jpeg_scan_info));
}
scanptr = cinfo->script_space;
cinfo->scan_info = scanptr;