From 909892f40ea482275a2db83dc21887badfb4bca5 Mon Sep 17 00:00:00 2001 From: Pecon Date: Tue, 11 Aug 2020 15:27:52 -0700 Subject: [PATCH] Change shorts to ints --- Engine/source/platformX86UNIX/x86UNIXPlatform.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Engine/source/platformX86UNIX/x86UNIXPlatform.cpp b/Engine/source/platformX86UNIX/x86UNIXPlatform.cpp index bd656de1f..d43940861 100644 --- a/Engine/source/platformX86UNIX/x86UNIXPlatform.cpp +++ b/Engine/source/platformX86UNIX/x86UNIXPlatform.cpp @@ -5,15 +5,15 @@ bool Platform::openWebBrowser(const char* webAddress) String startingURL(webAddress); String filteredURL; - U16 length = startingURL.length(); - for(U16 i = 0; i < length; i++) + U32 length = startingURL.length(); + for(U32 i = 0; i < length; i++) { filteredURL = filteredURL + '\\' + startingURL[i]; } String runCommand = "URL=" + filteredURL + "; xdg-open $URL > /dev/null 2> /dev/null"; - S16 statusCode; + S32 statusCode; statusCode = system(runCommand.c_str()); if(statusCode == 0)