Skip to content

Bitpacking in lib/source/pl/lib/std/time.cpp (to_local, to_utc) doesn't correctly handle big endian pragma #221

Description

@applmak
#pragma endian big
std::time::EpochTime epoch = std::time::epoch();
std::time::Time t = std::time::to_utc(epoch);
std::print("{}, {}", epoch, t);

Prints "Invalid", because the bitpacking here doesn't take endianness into account correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions