From 212b4e6d167302cf948494390870c04502d558ba Mon Sep 17 00:00:00 2001 From: Ed_ Date: Thu, 7 Sep 2023 21:11:57 -0400 Subject: [PATCH] Fixes for compiling with clang Clang just had better errors and caught stuff msvc did not. --- project/components/interface.parsing.cpp | 2 +- project/dependencies/strings.hpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/project/components/interface.parsing.cpp b/project/components/interface.parsing.cpp index 329f958..c6fb2a1 100644 --- a/project/components/interface.parsing.cpp +++ b/project/components/interface.parsing.cpp @@ -4821,7 +4821,7 @@ CodeType parse_type( bool* typedef_is_function ) if ( is_function_typename ) { // Go to the end of the signature - while ( scanner->Type != TokType::Statement_End && scanner->TokType::BraceCurly_Open ) + while ( scanner->Type != TokType::Statement_End && scanner->Type != TokType::BraceCurly_Open ) ++ scanner; // Go back to the first capture start found diff --git a/project/dependencies/strings.hpp b/project/dependencies/strings.hpp index cc57a96..599c681 100644 --- a/project/dependencies/strings.hpp +++ b/project/dependencies/strings.hpp @@ -281,22 +281,22 @@ struct String switch ( c ) { case ' ': - result.append('·'); + result.append( txt("·") ); break; case '\t': - result.append('→'); + result.append( txt("→") ); break; case '\n': - result.append('↵'); + result.append( txt("↵") ); break; case '\r': - result.append('⏎'); + result.append( txt("⏎") ); break; case '\v': - result.append('⇕'); + result.append( txt("⇕") ); break; case '\f': - result.append('⌂'); + result.append( txt("⌂") ); break; default: result.append(c);