From df8fb84723e22b1dce5a2dc4566f0f5c703e7050 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Tue, 8 Jan 2013 17:41:06 +0100 Subject: [PATCH] Workaround api-test compilation on some very old systems. --- tests/api-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api-test.c b/tests/api-test.c index 747c3cf..d54e9a5 100644 --- a/tests/api-test.c +++ b/tests/api-test.c @@ -700,7 +700,7 @@ static void AddDevicePlain(void) EQ_(r_size, size); // size overlaps - FAIL_(crypt_resize(cd, CDEVICE_1, ULLONG_MAX),"Backing device is too small"); + FAIL_(crypt_resize(cd, CDEVICE_1, (uint64_t)-1),"Backing device is too small"); FAIL_(crypt_resize(cd, CDEVICE_1, (size>>SECTOR_SHIFT)+1),"crypt device overlaps backing device"); // resize ok -- 2.7.4