Skip to content

Conversation

@darthwalsh
Copy link

When upgrading xcode&cmake, our build added the option -Wshorten-64-to-32 causing:

warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]

Just use the exact type of assignment.

Passes our internal scenarios, and make test on macOS.

When upgrading xcode&cmake, our build added the option `-Wshorten-64-to-32` causing:

> warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]

Just use the exact type of assignment.

Passes our internal scenarios, and `make test` on macOS.
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.

1 participant