Skip to content

Commit

Permalink
Merge pull request #46 from Shatur95/fix-implicit-conversion-warning
Browse files Browse the repository at this point in the history
Fix implicit conversion warning
  • Loading branch information
Skycoder42 authored Oct 15, 2020
2 parents bd35d8b + b73b495 commit 53745ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QHotkey/qhotkey_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ quint32 QHotkeyPrivateWin::nativeKeycode(Qt::Key keycode, bool &ok)
{
ok = true;
if(keycode <= 0xFFFF) {//Try to obtain the key from it's "character"
const SHORT vKey = VkKeyScanW(keycode);
const SHORT vKey = VkKeyScanW(static_cast<WCHAR>(keycode));
if(vKey > -1)
return LOBYTE(vKey);
}
Expand Down

0 comments on commit 53745ba

Please sign in to comment.