Skip to content

Commit

Permalink
WASM_X64: Assign mod value directly as constant
Browse files Browse the repository at this point in the history
Co-authored-by: Ondřej Čertík <[email protected]>
  • Loading branch information
Shaikh-Ubaid and certik authored Apr 14, 2023
1 parent 0630d23 commit 1a99f9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libasr/codegen/x86_assembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ void X86Assembler::save_binary64(const std::string &filename) {
out.write((const char*) m_code.p, m_code.size());
}
#ifdef LFORTRAN_LINUX
std::string mode = "0755";
int mod = strtol(mode.c_str(), 0, 8);
int mod = 0755;
if (chmod(filename.c_str(),mod) < 0) {
throw AssemblerError("chmod failed");
}
Expand Down

0 comments on commit 1a99f9a

Please sign in to comment.