Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning on clang #6

Merged
merged 1 commit into from
Apr 6, 2021
Merged

Fix warning on clang #6

merged 1 commit into from
Apr 6, 2021

Conversation

pavelosipov
Copy link
Contributor

@pavelosipov pavelosipov commented Apr 6, 2021

Fix the following warning:

args.hpp:337:55: warning: implicit conversion loses integer precision:
      'std::__1::vector<args::argument, std::__1::allocator<args::argument> >::size_type' (aka 'unsigned long') to
      'std::__1::unordered_map<std::__1::basic_string<char>, int, std::__1::hash<std::__1::basic_string<char> >,
      std::__1::equal_to<std::__1::basic_string<char> >, std::__1::allocator<std::__1::pair<const std::__1::basic_string<char>,
      int> > >::mapped_type' (aka 'int') [-Wshorten-64-to-32]
        if (arg.flags.empty()) lookup[""] = arguments.size();

@pfultz2 pfultz2 merged commit b06e867 into pfultz2:master Apr 6, 2021
@pfultz2
Copy link
Owner

pfultz2 commented Apr 6, 2021

Thanks!

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