Skip to content

Commit

Permalink
Merge branch 'master' into typed-functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Lee committed Mar 5, 2025
2 parents 4625a2a + dd050c0 commit 864e93f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ runs:
- name: install native libraries
if: runner.os == 'Linux'
shell: pwsh
run: sudo apt-get install -qqy gcc-multilib g++-multilib
run: |
sudo apt-get update -qqy
sudo apt-get install -qqy gcc-multilib g++-multilib
- name: build run.n
working-directory: tools/run
Expand Down
9 changes: 3 additions & 6 deletions src/String.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2452,6 +2452,7 @@ void String::__boot()
{
#ifdef HX_SMART_STRINGS
if (c>127)
#endif
{
char16_t buf[20];
buf[0] = c;
Expand All @@ -2462,8 +2463,8 @@ void String::__boot()
sConstStrings[c].__w = w;
fixHashPerm16(sConstStrings[c]);
}
#ifdef HX_SMART_STRINGS
else
#endif
{
char buf[20];
int utf8Len = UTF8Bytes(c);
Expand All @@ -2473,6 +2474,7 @@ void String::__boot()
sConstStrings[c].__s = (char *)InternalCreateConstBuffer(buf,utf8Len+1,true);
sConstStrings[c].length = utf8Len;
}
#endif
}

sConstEmptyString.mPtr = new (hx::NewObjConst)StringData(emptyString);
Expand All @@ -2481,8 +2483,3 @@ void String::__boot()
&CreateEmptyString, &CreateString, 0, 0, 0
);
}





0 comments on commit 864e93f

Please sign in to comment.