Skip to content

Commit

Permalink
fix ARM build (for #3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Dec 29, 2023
1 parent b9dc867 commit c7b189c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ static TempStr ShortenStringUtf8Temp(char* s, int maxRunes) {
char* tmp = ret;
int n;
for (int i = 0; i < nRunes; i++) {
n = utf8RuneLen((u8*)s);
n = utf8RuneLen((const u8*)s);
CrashIf(n <= 0);
if (i < removeStartingAt || i >= removeStartingAt + toRemove) {
switch (n) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/StrUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static bool isLegalUTF8(const u8* src, int length) {

/* --------------------------------------------------------------------- */

inline int utf8RuneLen(const u8* s) {
int utf8RuneLen(const u8* s) {
int n = trailingBytesForUTF8[*s] + 1;
return n;
}
Expand Down

0 comments on commit c7b189c

Please sign in to comment.