mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Merge pull request #1800 from Azaezel/andOrMaybe
clang reports: unclear || + && and &+| mixes.
This commit is contained in:
commit
55b7a8431c
16 changed files with 37 additions and 35 deletions
|
|
@ -481,7 +481,7 @@ U32 oneUTF32toUTF8(const UTF32 codepoint, UTF8 *threeByteCodeunitBuf)
|
|||
// Process the 1st byte. filter based on the # of expected bytes.
|
||||
mask = sgByteMask8LUT[bytecount];
|
||||
marker = ( ~mask << 1 );
|
||||
threeByteCodeunitBuf[0] = marker | working & mask;
|
||||
threeByteCodeunitBuf[0] = marker | (working & mask);
|
||||
|
||||
PROFILE_END();
|
||||
return bytecount;
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ bool TagDictionary::match(const char* pattern, const char* str)
|
|||
return !*str;
|
||||
|
||||
case '*':
|
||||
return match(pattern+1, str) || *str && match(pattern, str+1);
|
||||
return match(pattern+1, str) || (*str && match(pattern, str+1));
|
||||
|
||||
case '?':
|
||||
return *str && match(pattern+1, str+1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue