GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 28-Feb-2024 19:36:10 JST翠星石翠星石
    in reply to
    • r
    @r It depends actually.

    On AMD64, if you overflow unsigned by just a bit, it overflows into a larger value anyway.

    #include <stdio.h>

    int main()
    {
    unsigned long e = 9223372036854775807 + 2;

    printf("%lu\n", e);

    }

    main.c:6:47: warning: integer overflow in expression of type ‘long int’ results in ‘-9223372036854775807’ [-Woverflow]
    6 | unsigned long e = 9223372036854775807 + 2;
    | ^
    翠星石 ~ $ ./a.out
    9223372036854775809
    In conversationWednesday, 28-Feb-2024 19:36:10 JST from freesoftwareextremist.compermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.