Kaydet (Commit) 874734c9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/jpeg-turbo: Work around -fsanitize=shift

Change-Id: I214ecae8c746235d31bfee9ae6adf65fa29ba68b
üst fc4a339d
...@@ -38,3 +38,12 @@ ...@@ -38,3 +38,12 @@
} else { } else {
if (r == 15) { /* ZRL */ if (r == 15) { /* ZRL */
k += 15; /* skip 15 zeroes in band */ k += 15; /* skip 15 zeroes in band */
@@ -494,7 +494,7 @@
phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
int Se = cinfo->Se;
int p1 = 1 << cinfo->Al; /* 1 in the bit position being coded */
- int m1 = (-1) << cinfo->Al; /* -1 in the bit position being coded */
+ int m1 = (unsigned)-1 << cinfo->Al; /* -1 in the bit position being coded */
register int s, k, r;
unsigned int EOBRUN;
JBLOCKROW block;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment