From: Arjen Baart Date: Mon, 30 Mar 2020 14:06:44 +0000 (+0200) Subject: Fix ambiguity with size_t X-Git-Url: http://www.andromeda.nl/gitweb/?a=commitdiff_plain;h=4149af98bcb832ca95218f8a19a5310c5f07ab65;p=ACL.git Fix ambiguity with size_t --- diff --git a/src/string.cpp b/src/string.cpp index 7f99d83..dd159d0 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -439,7 +439,7 @@ char& String::operator[](size_t i) { if (i >= strlen(p->s)) { - throw StringException("Out of bounds: " + String(i)); + throw StringException("Out of bounds: " + String((int)i)); } return p->s[i];