Skip to content

Fix implicit conversion float to double#1902

Open
bjornwah wants to merge 1 commit into
nothings:masterfrom
bjornwah:bugfix/implicit-float-to-double
Open

Fix implicit conversion float to double#1902
bjornwah wants to merge 1 commit into
nothings:masterfrom
bjornwah:bugfix/implicit-float-to-double

Conversation

@bjornwah

@bjornwah bjornwah commented Mar 6, 2026

Copy link
Copy Markdown

error: implicit conversion from 'float' to 'double' to match other operand of binary expression [-Werror=double-promotion]

error: implicit conversion from 'float' to 'double' to match other operand of binary expression [-Werror=double-promotion]
@bjornwah

bjornwah commented Mar 6, 2026

Copy link
Copy Markdown
Author

This macro seems only to be called with floating point args.

Would it be better to make it a function? Macros are a bit fuzzy with regard to typing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants