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

Pedantic code fixes #982

Closed
wants to merge 11 commits into from
Closed

Conversation

0x8000-0000
Copy link
Contributor

No description provided.

lib/fmt/include/fmt/format-inl.h:759:27: error: conversion from
‘ptrdiff_t’ {aka ‘long int’} to ‘int’ may change value
[-Werror=conversion]
   grisu2_prettify(params, size, cached_exp + exp, prettify_handler(buf, size));
                           ^~~~
include/fmt/format-inl.h:707:23: error: implicit conversion changes
signedness: 'typename std::make_unsigned<int>::type' (aka 'unsigned
int') to 'int' [-Werror,-Wsign-conversion]
  params.num_digits = to_unsigned(num_digits);
                    ~ ^~~~~~~~~~~~~~~~~~~~~~~
include/fmt/format-inl.h:755:33: error: implicit conversion changes
signedness: 'int' to 'size_t' (aka 'unsigned long')
[-Werror,-Wsign-conversion]
  params.num_digits)) {
  ~~~~~~~^~~~~~~~~~}
@0x8000-0000 0x8000-0000 force-pushed the fix-more-warnings branch 2 times, most recently from 074f859 to fbd6aa7 Compare December 16, 2018 02:11
@0x8000-0000
Copy link
Contributor Author

Superseded by #983

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