Module Name: src Committed By: skrll Date: Sat Apr 27 15:43:09 UTC 2019
Modified Files: src/usr.bin/elf2aout: elf2aout.c Log Message: Fix build on ppc64 To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.bin/elf2aout/elf2aout.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/elf2aout/elf2aout.c diff -u src/usr.bin/elf2aout/elf2aout.c:1.20 src/usr.bin/elf2aout/elf2aout.c:1.21 --- src/usr.bin/elf2aout/elf2aout.c:1.20 Fri Apr 26 07:35:21 2019 +++ src/usr.bin/elf2aout/elf2aout.c Sat Apr 27 15:43:09 2019 @@ -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 @@ translate_syms(int out, int in, off_t sy 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