]> OCCT Git - occt-copy.git/commit
0029925: Foundation Classes - add missing cast to LowerCase() and UpperCase() arguments
authorkgv <kgv@opencascade.com>
Mon, 2 Jul 2018 21:45:41 +0000 (00:45 +0300)
committerbugmaster <bugmaster@opencascade.com>
Sun, 8 Jul 2018 07:46:57 +0000 (10:46 +0300)
commit311e9efd6cb85ce7fb2dc986cb146a88050108b3
tree9ee8f99c1dbfa71e5372cd65848b41696b8abd03
parentf8e1f7278f143c7d6a7b1dfa971fe104e87b96c9
0029925: Foundation Classes - add missing cast to LowerCase() and UpperCase() arguments

Argument of LowerCase() and UpperCase() is cast to int via unsigned char to avoid passing negative integer in the case if the argument char is in the extended part of ASCII table (which would result in undefined behavior according to C++ standard).
src/QABugs/QABugs_20.cxx
src/Standard/Standard_Character.hxx
tests/bugs/fclasses/bug29925 [new file with mode: 0644]