diff --git a/src/libasr/codegen/x86_assembler.cpp b/src/libasr/codegen/x86_assembler.cpp index feea8843a3..5f82a98f4f 100644 --- a/src/libasr/codegen/x86_assembler.cpp +++ b/src/libasr/codegen/x86_assembler.cpp @@ -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"); }