Skip to content

ConsumeInt64 and ConsumeWord64 are defined only on 32bit systems #365

@phadej

Description

@phadej

Which makes writing portable code unnecessarily inconvenient.

Instead of

decodeInt64 =
#if defined(ARCH_64bit)
  Decoder (\k -> return (ConsumeInt (\n# -> k (toInt64 n#))))
#else
  Decoder (\k -> return (ConsumeInt64 (\n64# -> k (toInt64 n64#))))
#endif

we could have just

decodeInt64 =
  Decoder (\k -> return (ConsumeInt64 (\n64# -> k (toInt64 n64#))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions