Skip to content

Commit 1a99f9a

Browse files
ubaidskcertik
andauthored
WASM_X64: Assign mod value directly as constant
Co-authored-by: Ondřej Čertík <[email protected]>
1 parent 0630d23 commit 1a99f9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libasr/codegen/x86_assembler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ void X86Assembler::save_binary64(const std::string &filename) {
2222
out.write((const char*) m_code.p, m_code.size());
2323
}
2424
#ifdef LFORTRAN_LINUX
25-
std::string mode = "0755";
26-
int mod = strtol(mode.c_str(), 0, 8);
25+
int mod = 0755;
2726
if (chmod(filename.c_str(),mod) < 0) {
2827
throw AssemblerError("chmod failed");
2928
}

0 commit comments

Comments
 (0)