Bug 468994 - fixing warning about formal parameter 2 different from declaration int16 != int, r=joe

This commit is contained in:
timeless@mozdev.org 2009-12-13 09:11:39 -08:00
Родитель 8f9f71259b
Коммит 245e62181e
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -433,7 +433,7 @@ emit_adobe_app14 (j_compress_ptr cinfo)
*/ */
METHODDEF(void) METHODDEF(void)
write_marker_header (j_compress_ptr cinfo, int16 marker, unsigned int datalen) write_marker_header (j_compress_ptr cinfo, int marker, unsigned int datalen)
/* Emit an arbitrary marker header */ /* Emit an arbitrary marker header */
{ {
if (datalen > (unsigned int) 65533) /* safety check */ if (datalen > (unsigned int) 65533) /* safety check */
@ -445,10 +445,10 @@ write_marker_header (j_compress_ptr cinfo, int16 marker, unsigned int datalen)
} }
METHODDEF(void) METHODDEF(void)
write_marker_byte (j_compress_ptr cinfo, int16 val) write_marker_byte (j_compress_ptr cinfo, int val)
/* Emit one byte of marker parameters following write_marker_header */ /* Emit one byte of marker parameters following write_marker_header */
{ {
emit_byte(cinfo, val); emit_byte(cinfo, (int16) val);
} }