mirror of
https://github.com/osm2pgsql-dev/osm2pgsql.git
synced 2025-07-25 16:06:14 +00:00
Workaround for int that is too large
Fixes MSVC warning. This is due to the way integer literals are parsed.
This commit is contained in:
@ -44,7 +44,7 @@ TEST_CASE("int4 conversion")
|
||||
CHECK(2147483647 == conn.result_as_int(population(4)));
|
||||
CHECK(10000 == conn.result_as_int(population(5)));
|
||||
CHECK(-10000 == conn.result_as_int(population(6)));
|
||||
CHECK(-2147483648 == conn.result_as_int(population(7)));
|
||||
CHECK((-2147483647 - 1) == conn.result_as_int(population(7)));
|
||||
|
||||
// More out of range negative values
|
||||
conn.assert_null(population(8));
|
||||
@ -59,7 +59,7 @@ TEST_CASE("int4 conversion")
|
||||
CHECK(2147483647 == conn.result_as_int(population(13)));
|
||||
CHECK(15000 == conn.result_as_int(population(14)));
|
||||
CHECK(-15000 == conn.result_as_int(population(15)));
|
||||
CHECK(-2147483648 == conn.result_as_int(population(16)));
|
||||
CHECK((-2147483647 - 1) == conn.result_as_int(population(16)));
|
||||
|
||||
// More out of range negative values
|
||||
conn.assert_null(population(17));
|
||||
|
Reference in New Issue
Block a user