Skip to content
Commit 88e671c1 authored by Gabor Kertesz's avatar Gabor Kertesz Committed by Szabolcs Nagy
Browse files

string: Fix unnecessary masking of memchr.

If input length parameter is decreased to zero, masking was
unnecessarily processed.
However it was harmless, since the mask was correctly set to zero.
Masking is required only in case of overread.

Changing the flag from HI to HS means, skip if zero flag is set.
HI = Unsigned higher: (C==1) && (Z==0)
HS = Unsigned higher or same: C==1
parent 30c1ada5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment