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

编译 android原生版本时, cocos native 代码有一个关于数值的警告. #17854

Open
finscn opened this issue Nov 14, 2024 · 0 comments
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@finscn
Copy link
Contributor

finscn commented Nov 14, 2024

Cocos Creator version

3.8.3

System information

android

Issue description

警告如下:

.../native/external/sources/pvmp3dec/src/pvmp3_alias_reduction.cpp:172:70: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]

C/C++:     *used_freq_lines = fxp_mul32_Q32(*used_freq_lines << 16, (int32)(0x7FFFFFFF / (float)18 - 1.0f)) >> 15;

虽然只是个警告, 但是理论上这种关于数值方面的错误 会有隐患, 希望可以修复.

Relevant error log output

No response

Steps to reproduce

如上

Minimal reproduction project

No response

@finscn finscn added Bug Needs Triage Needs to be assigned by the team labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

1 participant