Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/elf2aout Fix build on ppc64



details:   https://anonhg.NetBSD.org/src/rev/5203b084ad58
branches:  trunk
changeset: 456220:5203b084ad58
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Apr 27 15:43:09 2019 +0000

description:
Fix build on ppc64

diffstat:

 usr.bin/elf2aout/elf2aout.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ef2a4416acd9 -r 5203b084ad58 usr.bin/elf2aout/elf2aout.c
--- a/usr.bin/elf2aout/elf2aout.c       Sat Apr 27 14:10:01 2019 +0000
+++ b/usr.bin/elf2aout/elf2aout.c       Sat Apr 27 15:43:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf2aout.c,v 1.20 2019/04/26 07:35:21 skrll Exp $      */
+/*     $NetBSD: elf2aout.c,v 1.21 2019/04/27 15:43:09 skrll Exp $      */
 
 /*
  * Copyright (c) 1995
@@ -472,7 +472,7 @@
                        err(EXIT_FAILURE, "%s: write failed", __func__);
        }
        /* Write out the string table length... */
-       stringsizebuf = newstringsize;
+       stringsizebuf = (uint32_t)newstringsize;
 #if TARGET_BYTE_ORDER != BYTE_ORDER
        stringsizebuf = bswap32(stringsizebuf);
 #endif



Home | Main Index | Thread Index | Old Index