Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
1106-beam_lib-Fix-spec-for-all_chunks-1.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1106-beam_lib-Fix-spec-for-all_chunks-1.patch of Package erlang
From aec4d555f1c37ec2f90507d098322171940c5f56 Mon Sep 17 00:00:00 2001 From: Michael Davis <mcarsondavis@gmail.com> Date: Tue, 8 Nov 2022 13:20:08 -0600 Subject: [PATCH] beam_lib: Fix spec for all_chunks/1 `beam_lib:all_chunks/1` returns the module contained in the given beam file/binary rather than the `beam_lib` atom if successful. Also see `scan_beam/2` which originally returns the module. --- lib/stdlib/src/beam_lib.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stdlib/src/beam_lib.erl b/lib/stdlib/src/beam_lib.erl index b5249df414..14c6d76430 100644 --- a/lib/stdlib/src/beam_lib.erl +++ b/lib/stdlib/src/beam_lib.erl @@ -156,7 +156,7 @@ chunks(File, Chunks, Options) -> catch Error -> Error end. -spec all_chunks(beam()) -> - {'ok', 'beam_lib', [{chunkid(), dataB()}]} | {'error', 'beam_lib', info_rsn()}. + {'ok', module(), [{chunkid(), dataB()}]} | {'error', 'beam_lib', info_rsn()}. all_chunks(File) -> read_all_chunks(File). -- 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