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

Fix c++11 float narrowing #1180

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jul 23, 2020

(Try to) fix a compile issue with DPC++ (SP) and AppleClang (SP):

Src/AmrCore/AMReX_ErrorList.cpp:318:52: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]

Follow-up to #1166

Fix a compile issue with DPC++ (SP) and AppleClang (DP):
```
Src/AmrCore/AMReX_ErrorList.cpp:318:52: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
```
@ax3l ax3l merged commit 370bccc into AMReX-Codes:development Jul 23, 2020
@ax3l ax3l deleted the fix-cxxNarrowing branch July 23, 2020 22:21
dwillcox pushed a commit to dwillcox/amrex that referenced this pull request Oct 3, 2020
Fix a compile issue with DPC++ (SP) and AppleClang (DP):
```
Src/AmrCore/AMReX_ErrorList.cpp:318:52: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants