summaryrefslogtreecommitdiffhomepage
path: root/StarsEx
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-08-03 22:49:08 +0200
committerAki <please@ignore.pl>2022-08-03 22:49:08 +0200
commit59af3b9729cb325fa65698f534bb87e77401c6a6 (patch)
treefde30380abe2f8bbe54d4553ed5d25dcd1f57bef /StarsEx
parent66b6a1440c5065b4585d571453884d65d84f59d2 (diff)
downloadstarshatter-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.
Diffstat (limited to 'StarsEx')
-rw-r--r--StarsEx/Joystick.cpp2
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);