[Bug 209742] devel/godot: Update to 2.0.4.1; add devel/godot-tools port

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 16 05:40:22 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209742

--- Comment #57 from lightside <lightside at 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 = 20; i <= 100; i+=20)
                printf("%d = %u; abs(%d) = %u\n", -i, -i, -i, abs(-i));

        return 0;
}
-->8-
% clang++38 out.cpp -o out && ./out
-20 = 4294967276; abs(-20) = 20
-40 = 4294967256; abs(-40) = 40
-60 = 4294967236; abs(-60) = 60
-80 = 4294967216; abs(-80) = 80
-100 = 4294967196; abs(-100) = 100

In other words, -100 in unsigned int is 4294967196, which is bigger than 100.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list