Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Ben Gamari's avatar
    d9dff93a
    rts: Fix platform-dependent pointer casts · d9dff93a
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    Previously we had unnecessary (and incorrect) platform-dependent casts
    to turn `OSThreadIds`s into a integer. We now just uniformly cast first
    to a `uintptr_t` (which is always safe, regardless of whether
    `OSThreadId` is a pointer), and then cast to the desired integral type.
    
    This fixes a warning on musl platforms.
    d9dff93a
    History
    rts: Fix platform-dependent pointer casts
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    Previously we had unnecessary (and incorrect) platform-dependent casts
    to turn `OSThreadIds`s into a integer. We now just uniformly cast first
    to a `uintptr_t` (which is always safe, regardless of whether
    `OSThreadId` is a pointer), and then cast to the desired integral type.
    
    This fixes a warning on musl platforms.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.