From 78f86d5f16c82ffbf5b877bf89093bc18699b146 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 28 Nov 2018 22:23:09 -0500 Subject: [PATCH] silence compiler warning about singed vs. unsigned --- src/universe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/universe.cpp b/src/universe.cpp index 410d12dcb3..f078590103 100644 --- a/src/universe.cpp +++ b/src/universe.cpp @@ -174,9 +174,9 @@ void Universe::add_world(char *str) // str may not be empty and may only consist of digits or 'x' - int len = strlen(str); + size_t len = strlen(str); if (len < 1) valid = false; - for (int i=0; i < len; ++i) + for (size_t i=0; i < len; ++i) if (isdigit(str[i]) || str[i] == 'x') continue; else valid = false;