aboutsummaryrefslogtreecommitdiff
path: root/bfd/oasys.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-17 23:19:27 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-17 23:19:27 +0000
commit301dfc71d4d0d371cd747d11b81ea3b002e48876 (patch)
treea95ce306d383293bfb4e76b860dce6d23e3e875b /bfd/oasys.c
parent8ab76aa732704e27060b9ddd1645e06e8face7c6 (diff)
downloadgdb-301dfc71d4d0d371cd747d11b81ea3b002e48876.zip
gdb-301dfc71d4d0d371cd747d11b81ea3b002e48876.tar.gz
gdb-301dfc71d4d0d371cd747d11b81ea3b002e48876.tar.bz2
Stuff
Diffstat (limited to 'bfd/oasys.c')
-rw-r--r--bfd/oasys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/oasys.c b/bfd/oasys.c
index cb40750..bd8695e 100644
--- a/bfd/oasys.c
+++ b/bfd/oasys.c
@@ -323,7 +323,7 @@ DEFUN(oasys_object_p,(abfd),
while (loop) {
oasys_record_union_type record;
oasys_read_record(abfd, &record);
- if (record.header.length < sizeof(record.header))
+ if ((size_t)record.header.length < (size_t)sizeof(record.header))
goto fail;
@@ -807,7 +807,7 @@ DEFUN(oasys_write_header, (abfd),
/* Create and write the header */
oasys_header_record_type r;
size_t length = strlen(abfd->filename);
- if (length > sizeof(r.module_name)) {
+ if (length > (size_t)sizeof(r.module_name)) {
length = sizeof(r.module_name);
}
@@ -881,7 +881,7 @@ DEFUN(oasys_write_data, (abfd),
current_byte_index = 0;
processed_data.relb = s->target_index | RELOCATION_TYPE_REL;
- while (current_byte_index < s->size)
+ while ((size_t)current_byte_index < s->size)
{
/* Scan forwards by eight bytes or however much is left and see if
there are any relocations going on */