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

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

Conversation

Notices

  1. Embed this notice
    :segasaturn: (takao@shitposter.club)'s status on Wednesday, 28-Feb-2024 19:36:17 JST :segasaturn: :segasaturn:
    • Sexy Moon
    @Moon so on a scale of 0 to 255, how hard do we glow? :terryno:
    In conversation Wednesday, 28-Feb-2024 19:36:17 JST from shitposter.club permalink
    • 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 conversation Wednesday, 28-Feb-2024 19:36:10 JST permalink
    • Embed this notice
      r (r@freesoftwareextremist.com)'s status on Wednesday, 28-Feb-2024 19:36:11 JST r r
      in reply to
      • Sexy Moon
      • smug
      @smug @Moon @takao Technically speaking, that's not how overflow works, but yeah.
      In conversation Wednesday, 28-Feb-2024 19:36:11 JST permalink
    • Embed this notice
      smug@smuganimeavatar.xyz's status on Wednesday, 28-Feb-2024 19:36:12 JST smug smug
      in reply to
      • Sexy Moon
      • r

      nice overflow

      In conversation Wednesday, 28-Feb-2024 19:36:12 JST permalink
    • Embed this notice
      r (r@freesoftwareextremist.com)'s status on Wednesday, 28-Feb-2024 19:36:16 JST r r
      in reply to
      • Sexy Moon
      @takao @Moon 256, I assume. :senko3:
      In conversation Wednesday, 28-Feb-2024 19:36:16 JST permalink
    • Embed this notice
      翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 28-Feb-2024 19:40:34 JST 翠星石 翠星石
      in reply to
      • 翠星石
      • r
      @r Wait, I actually overflowed signed and not unsigned. You need to case to (unsigned long) to stop gcc from complaining in that case.

      I remember receiving a gcc warning that a value was so large that it overflowed into the larger unit size, but I haven't been able to replicate it so far.
      In conversation Wednesday, 28-Feb-2024 19:40:34 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • 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.