summaryrefslogtreecommitdiffstats
path: root/1c0de8054c2feb3d7f4d9ee7e303b362adc68f1c.patch
blob: db5b30254a1d1c7fcdd80fa72ed10f03b1d2258f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 1c0de8054c2feb3d7f4d9ee7e303b362adc68f1c Mon Sep 17 00:00:00 2001
From: Danack <Danack@basereality.com>
Date: Tue, 16 Apr 2019 11:19:55 +0100
Subject: [PATCH] Relax testing to allow test to work on 32bit systems.

---
 tests/014-setresourcelimit.phpt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/014-setresourcelimit.phpt b/tests/014-setresourcelimit.phpt
index 7a490f92..14ea263f 100644
--- a/tests/014-setresourcelimit.phpt
+++ b/tests/014-setresourcelimit.phpt
@@ -56,7 +56,7 @@ foreach ($tests as $resourceType => $value) {
 	Imagick::setResourceLimit($resourceType, $value);
 	$actualValue = Imagick::getResourceLimit($resourceType);
 
-	if (intval($actualValue) !== $value) {
+	if ($actualValue != $value) {
 		echo "Error testing $resourceType, value returned $actualValue is not $value \n";
 	}
 }