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
osd: fix a signed/unsigned warning in PG #13922
Conversation
It would be nice if the stats were unsigned, since they can't go negative, but that's not the world we live in. (Also, we probably use these structures as deltas which *do* need to go negative? I didn't check.) Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Didn't do any real testing of this, but it removed a signed/unsigned warning when compiled. |
fwiw the stats are deliberately signed so that underflow is more graceful. |
I broke the submodule check |
retest this please |
1 similar comment
retest this please |
Did this not get through an integration branch yet? Just noticed I still needed to carry the patch through a rebase. |
@gregsfortytwo what is the ticket number? |
I don't think there was one. Just something that popped up when building. |
It would be nice if the stats were unsigned, since they can't go negative,
but that's not the world we live in.
(Also, we probably use these structures as deltas which do
need to go negative? I didn't check.)
Signed-off-by: Greg Farnum gfarnum@redhat.com