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

Sign conversion errors in VariableLengthArray #71

Closed
skeetsaz opened this issue Oct 23, 2023 · 0 comments
Closed

Sign conversion errors in VariableLengthArray #71

skeetsaz opened this issue Oct 23, 2023 · 0 comments

Comments

@skeetsaz
Copy link
Contributor

include/cetl/variable_length_array.hpp:2339:82: error: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion]
                     const std::size_t bit_size_delta = 8U - (last_byte_bit_fill_ + 1);
                                                             ~~~~~~~~~~~~~~~~~~~~~^~~~
include/cetl/variable_length_array.hpp:2423:77: error: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion]
         return (size_ == 0) ? 0 : ((size_ - 1) * 8U) + (last_byte_bit_fill_ + 1);
                                                        ~~~~~~~~~~~~~~~~~~~~~^~~~
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

No branches or pull requests

2 participants