-
Notifications
You must be signed in to change notification settings - Fork 376
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
warning: absolute value function 'labs' given an argument of type 'int64_t' #667
Comments
Hello @parmi93, thanks for reporting. Indeed the |
mlasch
added a commit
to husqvarnagroup/wakaama
that referenced
this issue
Jul 3, 2022
…32bit truncation The test was not covering the whole function, thus missing an imporant section where truncation of the input value can happen on a 32bit architecture.
mlasch
added a commit
to husqvarnagroup/wakaama
that referenced
this issue
Jul 3, 2022
…ctures Replace `labs()` with `llabs()` to avoid truncation on 32bit architectures. Also do not tolerate value truncation in CI build.
mlasch
added a commit
to husqvarnagroup/wakaama
that referenced
this issue
Jul 3, 2022
…ctures Replace `labs()` with `llabs()` to avoid truncation on 32bit architectures. Also do not tolerate value truncation in the CI build.
mlasch
added a commit
to husqvarnagroup/wakaama
that referenced
this issue
Jul 5, 2022
…32bit truncation The test was not covering the whole function, thus missing an imporant section where truncation of the input value can happen on a 32bit architecture.
mlasch
added a commit
to husqvarnagroup/wakaama
that referenced
this issue
Jul 5, 2022
…ctures Replace `labs()` with `llabs()` to avoid truncation on 32bit architectures. Also do not tolerate value truncation in the CI build.
mlasch
added a commit
that referenced
this issue
Jul 6, 2022
The test was not covering the whole function, thus missing an imporant section where truncation of the input value can happen on a 32bit architecture.
mlasch
added a commit
that referenced
this issue
Jul 6, 2022
Replace `labs()` with `llabs()` to avoid truncation on 32bit architectures. Also do not tolerate value truncation in the CI build.
Thanks you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to compile the library for an embedded system based on an ARM Cortex A7.
I have not been able to compile the project yet due to several errors that I have to fix to complete the port.
In particular, I noticed this warning:
The
labs
andllabs
functions are defined as follows:long labs (long);
long long llabs (long long);
Where the long type has a size of 4 bytes.
Any suggestions?
The text was updated successfully, but these errors were encountered: