Skip to content

Replace static_cast<> with C-style casts and fix real conversion warnings - #159

Draft
skal65535 wants to merge 2 commits into
mainfrom
skal/fix-warnings
Draft

Replace static_cast<> with C-style casts and fix real conversion warnings#159
skal65535 wants to merge 2 commits into
mainfrom
skal/fix-warnings

Conversation

@skal65535

Copy link
Copy Markdown
Collaborator

Converts all remaining static_cast<> numeric and pointer casts to C-style casts across src/, examples/, and tests/, matching the codebase's existing convention (reinterpret_cast/const_cast are left as-is). Also fixes the real precision-loss findings from -Wshorten-64-to-32 and -Wimplicit-(float|int-float)-conversion.

…ings

Converts all remaining static_cast<> numeric and pointer casts to C-style
casts across src/, examples/, and tests/, matching the codebase's existing
convention (reinterpret_cast/const_cast are left as-is). Also fixes the
real precision-loss findings from -Wshorten-64-to-32 and
-Wimplicit-(float|int-float)-conversion.
# Conflicts:
#	src/dichotomy.cc
#	src/enc.cc
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

Successfully merging this pull request may close these issues.

1 participant