diff --git a/src/Bytecode.hh b/src/Bytecode.hh
index c0bd121374fc08e2d2df1dd0716c0f43162420ae..7cbed3a51cb5ccc5e85fe35b1db165cf678c3c97 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();