From b4fc0df834412de5b25b105a2141968d53d37df2 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Thu, 8 Dec 2016 21:31:32 +0100 Subject: Use an uint for scode as opposed to unsigned short to avoid truncation Since scode is effectively an uint and not an unsigned short like wcode is then we should go with the bigger type to ensure it is not truncated. Change-Id: I6f1affea5a06371eb3c3a632c3ecb9578f6254e4 Reviewed-by: Friedemann Kleint --- src/activeqt/container/qaxbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activeqt/container/qaxbase.cpp b/src/activeqt/container/qaxbase.cpp index f2deedb..4e37b88 100644 --- a/src/activeqt/container/qaxbase.cpp +++ b/src/activeqt/container/qaxbase.cpp @@ -3396,7 +3396,7 @@ static bool checkHRESULT(HRESULT hres, EXCEPINFO *exc, QAxBase *that, const QStr case DISP_E_EXCEPTION: { bool printWarning = true; - unsigned short code = ushort(-1); + unsigned int code = uint(-1); QString source, desc, help; const QMetaObject *mo = that->metaObject(); int exceptionSignal = mo->indexOfSignal("exception(int,QString,QString,QString)"); -- cgit v1.2.1