From 1b171d5b20069b3009ab9504c4c64b3adf3d791f Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 18 Sep 2020 05:12:51 -0700 Subject: [PATCH] Warning fixes --- BeefySysLib/util/String.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BeefySysLib/util/String.cpp b/BeefySysLib/util/String.cpp index 63e2e501..29488442 100644 --- a/BeefySysLib/util/String.cpp +++ b/BeefySysLib/util/String.cpp @@ -110,7 +110,7 @@ intptr StringView::IndexOf(char c, int64 startIdx) const auto ptr = mPtr; for (int64 i = startIdx; i < mLength; i++) if (ptr[i] == c) - return i; + return (intptr)i; return -1; } @@ -823,7 +823,7 @@ intptr StringImpl::IndexOf(char c, int64 startIdx) const auto ptr = GetPtr(); for (int64 i = startIdx; i < mLength; i++) if (ptr[i] == c) - return i; + return (intptr)i; return -1; }