Skip to content

Use more appropriate types for base, precision and width #116

Open

Description

@eyalroz

The only base values the library support are: 2, 8, 10, 16. And yet - we pass it around in larger types, and not even the same type everywhere.

So, why should we not just use a single small type for the base? Say, uint_least8_t or uint_fast8_t?

Activity

  1. eyalroz commented on Jul 31, 2021

    @eyalroz
    CollaboratorAuthor

    @mickjc750 : This issue report is inspired by your commit b907595 , where you've done something similar. Which of the types do you believe is more appropriate?

  2. mickjc750 commented on Aug 1, 2021

    @mickjc750
  3. changed the title [-]Use a single, appropriate type for the base[/-] [+]Use a single, appropriate type for base, precision and width[/+] on Aug 1, 2021
  4. changed the title [-]Use a single, appropriate type for base, precision and width[/-] [+]Use a single, appropriate type for base[/+] on Aug 1, 2021
  5. changed the title [-]Use a single, appropriate type for base[/-] [+]Use more appropriate types for base, precision and width[/+] on Aug 1, 2021
  6. eyalroz commented on Aug 1, 2021

    @eyalroz
    CollaboratorAuthor

    @mickjc750 : You've packaged several issues into one... anyway, are we sure width always fits in a uint8_t ?

    Also, please try to avoid commenting by replying to the email and quoting everything. If you reply, please quote nothing. Otherwise we get a huge quoted-part of your comment which doesn't add any new information.

  7. mickjc750 commented on Aug 1, 2021

    @mickjc750
  8. added 3 commits that reference this issue on Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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