From 9424d434853df887865ebea99cd79f21ee306e42 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 10 Jun 2024 17:43:01 +0200 Subject: [PATCH] Use explicit size in test when reading integers. On Windows `long` is 32bits. It's better to use an explicit size. --- test/istreamreader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/istreamreader.cpp b/test/istreamreader.cpp index 579e184d..a96b5915 100644 --- a/test/istreamreader.cpp +++ b/test/istreamreader.cpp @@ -54,8 +54,8 @@ TEST(IStreamReader, read_zero) { InfiniteZeroStream izs; IStreamReader& ids = izs; - EXPECT_EQ(0, ids.read()); - EXPECT_EQ(0L, ids.read()); + EXPECT_EQ(0, ids.read()); + EXPECT_EQ(0L, ids.read()); // zim::fromLittleEndian() handles only integer types // EXPECT_EQ(0.0, ids.read()); @@ -78,8 +78,8 @@ TEST(IStreamReader, read_increasing) { InfiniteIncreasingStream iis; IStreamReader& ids = iis; - EXPECT_EQ(0x03020100, ids.read()); - EXPECT_EQ(0x0B0A090807060504, ids.read()); + EXPECT_EQ(0x03020100, ids.read()); + EXPECT_EQ(0x0B0A090807060504, ids.read()); // zim::fromLittleEndian() handles only integer types // EXPECT_EQ(0.0, ids.read());