Skip to content

Commit

Permalink
Fixed compile errors on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelter-sap committed Jul 7, 2023
1 parent 100a437 commit 4f441f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/vitals/vitals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class ColumnWidths {

ColumnWidths() {
// Assert including the non-active columns, so we spot possible problems earlier.
assert(sizeof(_widths) / sizeof(_widths[0]) >= Legend::the_legend()->nr_of_columns(), "array to small");
assert(sizeof(_widths) / sizeof(_widths[0]) >= (size_t) Legend::the_legend()->nr_of_columns(), "array to small");

// Allocate array; initialize with the minimum required column widths (which is the
// size required to print the column header fully)
Expand Down Expand Up @@ -765,7 +765,7 @@ static void dump_buffer(stringStream* in, outputStream* out, int max_size) {
out->print_raw(in->base());
in->reset();

if (in->size() >= max_size - 1) {
if (in->size() >= (size_t) (max_size - 1)) {
out->cr();
out->print_cr("-- Buffer overflow, truncated (total: " SIZE_FORMAT ").", (size_t) in->count());
}
Expand Down

0 comments on commit 4f441f1

Please sign in to comment.