summaryrefslogtreecommitdiff
path: root/Userland/sleep.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-25 22:06:55 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-25 22:06:55 +0100
commit9624b54703f87a690dab7d5c59c37f53ad47594e (patch)
tree6c12fca22fea816236585e850916efd3535c37b9 /Userland/sleep.cpp
parentbeda4788216509fdf846e5bb6f6000b8b542ca11 (diff)
downloadserenity-9624b54703f87a690dab7d5c59c37f53ad47594e.zip
More moving towards using signed types.
I'm still feeling this out, but I am starting to like the general idea.
Diffstat (limited to 'Userland/sleep.cpp')
-rw-r--r--Userland/sleep.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/sleep.cpp b/Userland/sleep.cpp
index 1a44e9b027..dba5f1874a 100644
--- a/Userland/sleep.cpp
+++ b/Userland/sleep.cpp
@@ -6,7 +6,7 @@
static unsigned parse_uint(const String& str, bool& ok)
{
unsigned value = 0;
- for (size_t i = 0; i < str.length(); ++i) {
+ for (int i = 0; i < str.length(); ++i) {
if (str[i] < '0' || str[i] > '9') {
ok = false;
return 0;