Skip to content

Commit

Permalink
fix: tempdir creation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 26, 2024
1 parent 3b082a3 commit 8ec50a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cjit.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static bool cjit_mkdtemp(CJITState *cjit) {
DWORD attributes = GetFileAttributes(tempDir);
if (attributes == INVALID_FILE_ATTRIBUTES) {
// The path does not exist
return(false);
cjit->fresh = true;
} else if (attributes & FILE_ATTRIBUTE_DIRECTORY) {
// The path exists and is a directory
cjit->fresh = false;
Expand Down

0 comments on commit 8ec50a2

Please sign in to comment.