diff options
Diffstat (limited to 'gold/output.h')
-rw-r--r-- | gold/output.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/output.h b/gold/output.h index 3d1a44d..07a336d 100644 --- a/gold/output.h +++ b/gold/output.h @@ -2323,7 +2323,8 @@ class Output_file unsigned char* get_output_view(off_t start, size_t size) { - gold_assert(start >= 0 && start + size <= this->file_size_); + gold_assert(start >= 0 + && start + static_cast<off_t>(size) <= this->file_size_); return this->base_ + start; } |