blob: 81ff148c57d61e32438ed6e2ef94b6a1ee18ae59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- jcphuff.c
+++ jcphuff.c
@@ -14,6 +14,7 @@
* suspension.
*/
+#include <stdint.h>
#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"
@@ -255,7 +256,7 @@
if (c == 0xFF) { /* need to stuff a zero byte? */
emit_byte(entropy, 0);
}
- put_buffer <<= 8;
+ put_buffer = (uint_least32_t) put_buffer << 8;
put_bits -= 8;
}
|