tst_qjson: Fix MSVC C4293 warning about shift operation.
warning C4293: '<<' : shift count negative or too big, undefined behavior. Change-Id: I858dd08f16ea0e00f2384491fc735b7367c6925d Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
275c4b8403
commit
876202ddf2
@ -252,18 +252,18 @@ void tst_QtJson::testNumbers()
|
||||
0,
|
||||
-1,
|
||||
1,
|
||||
(1UL<<54),
|
||||
(1UL<<55),
|
||||
(1UL<<56),
|
||||
-(1UL<<54),
|
||||
-(1UL<<55),
|
||||
-(1UL<<56),
|
||||
(1UL<<54) - 1,
|
||||
(1UL<<55) - 1,
|
||||
(1UL<<56) - 1,
|
||||
-((1UL<<54) - 1),
|
||||
-((1UL<<55) - 1),
|
||||
-((1UL<<56) - 1)
|
||||
(1ll<<54),
|
||||
(1ll<<55),
|
||||
(1ll<<56),
|
||||
-(1ll<<54),
|
||||
-(1ll<<55),
|
||||
-(1ll<<56),
|
||||
(1ll<<54) - 1,
|
||||
(1ll<<55) - 1,
|
||||
(1ll<<56) - 1,
|
||||
-((1ll<<54) - 1),
|
||||
-((1ll<<55) - 1),
|
||||
-((1ll<<56) - 1)
|
||||
};
|
||||
int n = sizeof(numbers)/sizeof(qint64);
|
||||
|
||||
@ -289,18 +289,18 @@ void tst_QtJson::testNumbers()
|
||||
0,
|
||||
-1,
|
||||
1,
|
||||
(1UL<<54),
|
||||
(1UL<<55),
|
||||
(1UL<<56),
|
||||
-(1UL<<54),
|
||||
-(1UL<<55),
|
||||
-(1UL<<56),
|
||||
(1UL<<54) - 1,
|
||||
(1UL<<55) - 1,
|
||||
(1UL<<56) - 1,
|
||||
-((1UL<<54) - 1),
|
||||
-((1UL<<55) - 1),
|
||||
-((1UL<<56) - 1),
|
||||
double(1ll<<54),
|
||||
double(1ll<<55),
|
||||
double(1ll<<56),
|
||||
double(-(1ll<<54)),
|
||||
double(-(1ll<<55)),
|
||||
double(-(1ll<<56)),
|
||||
double((1ll<<54) - 1),
|
||||
double((1ll<<55) - 1),
|
||||
double((1ll<<56) - 1),
|
||||
double(-((1ll<<54) - 1)),
|
||||
double(-((1ll<<55) - 1)),
|
||||
double(-((1ll<<56) - 1)),
|
||||
1.1,
|
||||
0.1,
|
||||
-0.1,
|
||||
|
Loading…
Reference in New Issue
Block a user