Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8292758: put support for UNSIGNED5 format into its own header file #10067

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hotspot/share/utilities/unsigned5.hpp
Original file line number Diff line number Diff line change
@@ -333,7 +333,7 @@ class UNSIGNED5 : AllStatic {
// Writable array argument can be rewritten by accept_grow.
// So we need a legitimate (non-zero) limit to work with.
// As a result, a writer's initial buffer must not be empty.
assert(limit() != 0, "limit required");
assert(this->limit() != 0, "limit required");
}
void accept_uint(uint32_t value) {
const OFF lim = has_limit() ? limit() : 0;