From a4f299c0b781676afe3d9d073a7e2cd0551af997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Mon, 9 Jan 2023 14:09:09 +0100 Subject: [PATCH] Bytecode: change interface of function called from bytecode MEX --- src/Bytecode.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bytecode.hh b/src/Bytecode.hh index c0bd1213..7cbed3a5 100644 --- a/src/Bytecode.hh +++ b/src/Bytecode.hh @@ -1178,12 +1178,12 @@ public: return code; }; instructions_list_t - get_op_code(string file_name) + get_op_code(const filesystem::path &codfile) { instructions_list_t tags_liste; ifstream CompiledCode; streamoff Code_Size; - CompiledCode.open(file_name + ".cod", ios::in | ios::binary| ios::ate); + CompiledCode.open(codfile, ios::in | ios::binary| ios::ate); if (!CompiledCode.is_open()) return tags_liste; Code_Size = CompiledCode.tellg(); -- GitLab