Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
0313-Correct-the-test-for-obsolete-instructions...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0313-Correct-the-test-for-obsolete-instructions.patch of Package erlang
From 7ebe7f491d8f9bdf82c36ab5bd16a2aaee28d5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Tue, 25 Jun 2024 17:35:37 +0200 Subject: [PATCH 3/3] Correct the test for obsolete instructions When attempting to load obsolete instructions, the loading failed to recognize them and produced an unhelpful message instead of a polite request to recompile the module. This bug was introduced in 4dbc9988e7f764. --- erts/emulator/beam/beam_load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c index 289b5c5aab..7bc6a04874 100644 --- a/erts/emulator/beam/beam_load.c +++ b/erts/emulator/beam/beam_load.c @@ -579,7 +579,7 @@ static int load_code(LoaderState* stp) * No specific operations and no transformations means that * the instruction is obsolete. */ - if (num_specific == 0 && gen_opc[tmp_op->op].transform == -1) { + if (num_specific == 0 && gen_opc[tmp_op->op].transform == 0) { BeamLoadError0(stp, PLEASE_RECOMPILE); } -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor