projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d978b5b
)
Add cast to avoid signed/unsigned warning.
author
Ian Lance Taylor
<iant@google.com>
Wed, 2 Jan 2008 23:55:37 +0000
(23:55 +0000)
committer
Ian Lance Taylor
<iant@google.com>
Wed, 2 Jan 2008 23:55:37 +0000
(23:55 +0000)
gold/fileread.cc
patch
|
blob
|
history
diff --git
a/gold/fileread.cc
b/gold/fileread.cc
index 010c2eebbad9bac95e11ab9184defcde32a40841..ac96f5fcf4ae5ed50ca6343334d2bee3ae00bddf 100644
(file)
--- a/
gold/fileread.cc
+++ b/
gold/fileread.cc
@@
-454,8
+454,11
@@
File_read::read_multiple(off_t base, const Read_multiple& rm)
for (size_t k = i; k < j; ++k)
{
const Read_multiple_entry& k_entry(rm[k]);
- gold_assert(k_entry.file_offset - i_off + k_entry.size
- <= end_off - i_off);
+ gold_assert((convert_to_section_size_type(k_entry.file_offset
+ - i_off)
+ + k_entry.size)
+ <= convert_to_section_size_type(end_off
+ - i_off));
memcpy(k_entry.buffer,
v + (k_entry.file_offset - i_off),
k_entry.size);