summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-09-05 16:07:39 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2021-09-05 16:07:39 +0200
commitbeb18188a206a433aea6e63872b18ef67c7120bc (patch)
treedb8c4eb92b7cf551cd934c95a5af95f220878fd7
parent86886fd88017bcc72df3a8b524f5ef4948b7dad4 (diff)
downloadlibgd-beb18188a206a433aea6e63872b18ef67c7120bc.tar.gz
Stricter typing in test case
This avoids the compiler complaining about a pointer to int conversion.
-rw-r--r--tests/png/bug00338.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/png/bug00338.c b/tests/png/bug00338.c
index 779180f..479a864 100644
--- a/tests/png/bug00338.c
+++ b/tests/png/bug00338.c
@@ -34,7 +34,7 @@ int main()
im = gdImageCreateTrueColor(10, 10);
fp = gdTestTempFp();
- gdTestAssert(fp);
+ gdTestAssert(fp != NULL);
if (!fp) {
exit(2);
}