fix inappropriate if statement

This commit is contained in:
Roza 2021-01-06 01:13:19 -05:00
parent 1614eb0b4a
commit 55b9ee85a4
2 changed files with 4 additions and 3 deletions

View file

@ -60,10 +60,11 @@ mffi_value miniffi_call_intern(MINIFFI_FUNC target, MiniFFIFuncArgs *p, int npar
"test rax, rax\n"
"jz mffi_call_void\n"
"shl rax, 3\n"
"cmp rax, 32\n"
"cmp rax, 4\n"
"jle mffi_call_low\n"
"shl rax, 3\n"
"mffi_call_loop:\n"
"sub rax, 8\n"
"mov rbx, [rsi+rax]\n"

View file

@ -78,7 +78,7 @@ std::string filesystemImpl::normalizePath(const char *path, bool preferred, bool
char sep;
char sep_alt;
#ifdef __WINDOWS__
if (!preferred) {
if (preferred) {
sep = '\\';
sep_alt = '/';
}