Skip to content

Conversation

@dmah42
Copy link
Member

@dmah42 dmah42 commented Mar 6, 2024

No description provided.

@LebedevRI
Copy link
Collaborator

Yup, implicit conversions is perhaps one of the worst C/C++ "features".
Let's also enable it in cmake/bazel so it's not reintroduced?

@dmah42
Copy link
Member Author

dmah42 commented Mar 6, 2024

Yup, implicit conversions is perhaps one of the worst C/C++ "features". Let's also enable it in cmake/bazel so it's not reintroduced?

it's in bazel for tests only (!!). i'll see about improving that.

Comment on lines 1306 to 1307
int ArgsCnt() const;
const char* GetArgName(int arg) const;
const char* GetArgName(size_t arg) const;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this one, we return signed and then take unsigned.
I think things should generally be signed, but even then, this seems unconsistent

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i didn't feel great about that either. i'll tweak it.

Copy link
Collaborator

@LebedevRI LebedevRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a comment

@dmah42 dmah42 marked this pull request as ready for review March 6, 2024 16:26

static const T kmax = std::numeric_limits<T>::max();

// Space out the values in multiples of "mult"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm somewhat surprized that this is needed, but okay, i guess?

Copy link
Collaborator

@LebedevRI LebedevRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me, thank you!

@dmah42 dmah42 merged commit c64b144 into main Mar 7, 2024
@dmah42 dmah42 deleted the warnings branch March 7, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants