Workaround api-test compilation on some very old systems.
authorMilan Broz <gmazyland@gmail.com>
Tue, 8 Jan 2013 16:41:06 +0000 (17:41 +0100)
committerMilan Broz <gmazyland@gmail.com>
Tue, 8 Jan 2013 16:41:06 +0000 (17:41 +0100)
tests/api-test.c

index 747c3cf..d54e9a5 100644 (file)
@@ -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