Skip to content

Fix implicit conversions#109

Open
darthwalsh wants to merge 1 commit intodhbaird:masterfrom
darthwalsh:fix-implicit
Open

Fix implicit conversions#109
darthwalsh wants to merge 1 commit intodhbaird:masterfrom
darthwalsh:fix-implicit

Conversation

@darthwalsh
Copy link
Copy Markdown

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