diff options
author | Aki <please@ignore.pl> | 2022-08-03 22:49:08 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-08-03 22:49:08 +0200 |
commit | 59af3b9729cb325fa65698f534bb87e77401c6a6 (patch) | |
tree | fde30380abe2f8bbe54d4553ed5d25dcd1f57bef | |
parent | 66b6a1440c5065b4585d571453884d65d84f59d2 (diff) | |
download | starshatter-59af3b9729cb325fa65698f534bb87e77401c6a6.zip starshatter-59af3b9729cb325fa65698f534bb87e77401c6a6.tar.gz starshatter-59af3b9729cb325fa65698f534bb87e77401c6a6.tar.bz2 |
Extended size of cast even more
It looks that after update of mingw there were some narrowing problems again,
but only for selected constants. This is worrying but not pressing at all.
-rw-r--r-- | StarsEx/Joystick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/StarsEx/Joystick.cpp b/StarsEx/Joystick.cpp index 8b1a2ee..6881547 100644 --- a/StarsEx/Joystick.cpp +++ b/StarsEx/Joystick.cpp @@ -834,7 +834,7 @@ static char errstrbuf[128]; const char* DIErrStr(HRESULT hr) { - auto casted = static_cast<long unsigned int>(hr); + auto casted = static_cast<long long int>(hr); switch (casted) { default: sprintf_s(errstrbuf, "Unrecognized error value = %08x.", casted); |