8000
Skip to content

fix -Wsign-conversion warnings#2937

Merged
vitaut merged 1 commit intofmtlib:masterfrom
JurajX:fix_warnings
Jun 11, 2022
Merged

fix -Wsign-conversion warnings#2937
vitaut merged 1 commit intofmtlib:masterfrom
JurajX:fix_warnings

Conversation

@JurajX
Copy link
Copy Markdown
Contributor
@JurajX JurajX commented Jun 11, 2022

Fixing the two following warnings:
include/fmt/core.h:2890:40: warning: conversion to 'long unsigned int' from 'const int' may change the sign of the result [-Wsign-conversion]
2890 | parse_func parse_funcs_[num_args > 0 ? num_args : 1];
include/fmt/core.h:2891:28: warning: conversion to 'long unsigned int' from 'const int' may change the sign of the result [-Wsign-conversion]
2891 | type types_[num_args > 0 ? num_args : 1];

@vitaut vitaut merged commit 8e47cfd into fmtlib:master Jun 11, 2022
@vitaut
Copy link
Copy Markdown
Contributor
vitaut commented Jun 11, 2022

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

0