Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c722c6 + c0dd80e commit 60112aeCopy full SHA for 60112ae
1 file changed
Modules/_sre.c
@@ -427,7 +427,7 @@ SRE_CHARSET(SRE_CODE* set, SRE_CODE ch)
427
}
428
else {
429
/* <CHARSET> <bitmap> (32 bits per code word) */
430
- if (ch < 256 && (set[ch >> 5] & (1 << (ch & 31))))
+ if (ch < 256 && (set[ch >> 5] & (1u << (ch & 31))))
431
return ok;
432
set += 8;
433
@@ -466,7 +466,7 @@ SRE_CHARSET(SRE_CODE* set, SRE_CODE ch)
466
block = -1;
467
set += 64;
468
if (block >=0 &&
469
- (set[block*8 + ((ch & 255)>>5)] & (1 << (ch & 31))))
+ (set[block*8 + ((ch & 255)>>5)] & (1u << (ch & 31))))
470
471
set += count*8;
472
0 commit comments