diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-21 13:30:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-21 13:30:39 +0300 |
commit | 1fcc02e803d83ae8415ff44f9696cb215f475daa (patch) | |
tree | 3c4ccb5160624db095a139cb5a81a982e156d81c /src/gui/widgets | |
parent | 126fa885664da8a8de86f3a38c04469f7006e447 (diff) | |
download | manaplus-1fcc02e803d83ae8415ff44f9696cb215f475daa.tar.gz manaplus-1fcc02e803d83ae8415ff44f9696cb215f475daa.tar.bz2 manaplus-1fcc02e803d83ae8415ff44f9696cb215f475daa.tar.xz manaplus-1fcc02e803d83ae8415ff44f9696cb215f475daa.zip |
fix signed shifts.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/textfield.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index c30045c02..0d4d53dd3 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -251,7 +251,7 @@ void TextField::keyPressed(KeyEvent &keyEvent) } if (len > 1) - buf[0] |= static_cast<char>(255 << (8 - len)); + buf[0] |= static_cast<char>(255U << (8 - len)); mText.insert(mCaretPosition, std::string(buf, buf + len)); mCaretPosition += len; |