aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/quest/read_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/quest/read_file.cpp')
-rw-r--r--engines/glk/quest/read_file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/quest/read_file.cpp b/engines/glk/quest/read_file.cpp
index af6cc9d496..cc3fdd1aee 100644
--- a/engines/glk/quest/read_file.cpp
+++ b/engines/glk/quest/read_file.cpp
@@ -641,7 +641,7 @@ String trim(String s, trim_modes trim_mode) {
* - Otherwise, it's unbalanced
*/
bool is_balanced(String str) {
- uint index = str.find('{');
+ int index = str.find('{');
if (index == -1)
return true;
int depth;
@@ -655,7 +655,7 @@ bool is_balanced(String str) {
int count_depth(String str, int count) {
//cerr << "count_depth (" << str << ", " << count << ")" << endl;
- uint index = 0;
+ int index = 0;
if (count == 0)
index = str.find('{');
while (index < str.size()) {