Skip to content

Remove ReadLeb128 type argument#2776

Open
zherczeg wants to merge 1 commit into
WebAssembly:mainfrom
zherczeg:leb
Open

Remove ReadLeb128 type argument#2776
zherczeg wants to merge 1 commit into
WebAssembly:mainfrom
zherczeg:leb

Conversation

@zherczeg

Copy link
Copy Markdown
Collaborator

No description provided.

@zherczeg zherczeg force-pushed the leb branch 2 times, most recently from a3c51f2 to ccba1d9 Compare June 24, 2026 12:47
Comment thread src/binary-reader.cc Outdated
size_t bytes_read = ReadFn(p, end, out_value);
ERROR_UNLESS(bytes_read > 0, "unable to read %s leb128: %s", type_name, desc);
ERROR_UNLESS(bytes_read > 0, "unable to read %c%d leb128: %s", prefix,
static_cast<int>(sizeof(T) * 8), desc);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you skip the cast here and use %zu in the format string?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants