aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fractal-gen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fractal-gen.c b/fractal-gen.c
index 091f7d5..bfe151d 100644
--- a/fractal-gen.c
+++ b/fractal-gen.c
@@ -69,8 +69,8 @@ void die_help()
int main(int argc, char **argv)
{
- unsigned int size = 0;
- unsigned int iterations = 0;
+ long size = 0;
+ long iterations = 0;
char c = '\0';
while ((c = getopt(argc, argv, "s:i:")) != -1) {
@@ -88,7 +88,7 @@ int main(int argc, char **argv)
}
}
- if (size == 0 || iterations == 0) {
+ if (size <= 0 || iterations <= 0) {
die_help();
return 1; /* mostly unreachable */
}