Date: Thu, 02 Apr 2020 18:27:18 +0000 From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 245200] emulators/emu64 : Fails to build on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit: error: narrowing conversion of '-1' from 'int' to 'char' [-Wnarrowing] Message-ID: <bug-245200-25139-FqEInJpcu7@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-245200-25139@https.bugs.freebsd.org/bugzilla/> References: <bug-245200-25139@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245200 Justin Hibbits <jhibbits@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jhibbits@FreeBSD.org --- Comment #7 from Justin Hibbits <jhibbits@FreeBSD.org> --- Careful, that narrowing on powerpc and arm would yield a value of 255. If = it's used as a '< 0' check later, said check will fail. I've run into this a lot when people set the return value of getopt() to a char, and compare to -1, leading to an infinite loop. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245200-25139-FqEInJpcu7>