Date: Sat, 16 Jul 2016 05:40:22 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 209742] devel/godot: Update to 2.0.4.1; add devel/godot-tools port Message-ID: <bug-209742-13-F2tAwP88kY@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-209742-13@https.bugs.freebsd.org/bugzilla/> References: <bug-209742-13@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=3D209742 --- Comment #57 from lightside <lightside@gmx.com> --- (In reply to comment #56) > This is how it works with unsigned int and without abs. -8<-- #include <stdio.h> #include <stdlib.h> int main() { for (int i =3D 20; i <=3D 100; i+=3D20) printf("%d =3D %u; abs(%d) =3D %u\n", -i, -i, -i, abs(-i)); return 0; } -->8- % clang++38 out.cpp -o out && ./out -20 =3D 4294967276; abs(-20) =3D 20 -40 =3D 4294967256; abs(-40) =3D 40 -60 =3D 4294967236; abs(-60) =3D 60 -80 =3D 4294967216; abs(-80) =3D 80 -100 =3D 4294967196; abs(-100) =3D 100 In other words, -100 in unsigned int is 4294967196, which is bigger than 10= 0. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209742-13-F2tAwP88kY>