From 4149af98bcb832ca95218f8a19a5310c5f07ab65 Mon Sep 17 00:00:00 2001 From: Arjen Baart Date: Mon, 30 Mar 2020 16:06:44 +0200 Subject: [PATCH] Fix ambiguity with size_t --- src/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.20.1