GithubHelp home page GithubHelp logo

Comments (8)

geekosaur avatar geekosaur commented on June 3, 2024 1

It looks like the original author of the X11 package assumed struct timeval contains 32-bit quantities, but they're actually 64 bits. This means the upper bits can contain garbage.

from x11.

geekosaur avatar geekosaur commented on June 3, 2024 1

Notably, it looks to me like the lower 32 bits of tv_sec are 0 as expected, but the upper 32 bits aren't.

from x11.

geekosaur avatar geekosaur commented on June 3, 2024 1

You'll want to depend on X11 ^>= 1.10.3.10, although that version isn't on Hackage yet so you'll have to vendor it for now.

from x11.

geekosaur avatar geekosaur commented on June 3, 2024

The complication here is we may still need to support platforms where tv_sec is time_t (32 bits). Not sure how we deal with this, especially when we can't rely on it using glibc (we still have NetBSD users, I think). Probably something in hsc2hs?

from x11.

liskin avatar liskin commented on June 3, 2024

There's probably something we can #if on?
(too sick to open a computer so not looking into it any further now, sorry)

from x11.

geekosaur avatar geekosaur commented on June 3, 2024

I'm not finding anything portable, aside from doing it in configure. But, it seems the unix package assumes it's CLong, so we might as well do so too.

from x11.

geekosaur avatar geekosaur commented on June 3, 2024

Okay, in the interests of not forcing a PVP break, I left waitForEvent with the same type; but it should at some point change to either Word64 or CLong.

from x11.

slotThe avatar slotThe commented on June 3, 2024

We are following PVP? :)

from x11.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.