-
-
Save AdamMainsTL/92b7d33ba1978eb09a1b85691eb79691 to your computer and use it in GitHub Desktop.
Narrowing conversion error on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/adam/.conan/data/openimageio/2.3.13.0-raw/adam/testing/build/8f2397dea8c6aae6efd8960f19d9e0ae8af5d976/source_subfolder/src/raw.imageio/rawoutput.cpp:194:32: error: non-constant-expression cannot be narrowed from type 'int' to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] | |
uint32_t active_area[4] = {m_spec.full_y, | |
^~~~~~~~~~~~~ | |
/Users/adam/.conan/data/openimageio/2.3.13.0-raw/adam/testing/build/8f2397dea8c6aae6efd8960f19d9e0ae8af5d976/source_subfolder/src/raw.imageio/rawoutput.cpp:194:32: note: insert an explicit cast to silence this issue | |
uint32_t active_area[4] = {m_spec.full_y, | |
^~~~~~~~~~~~~ | |
static_cast<uint32_t>( ) | |
/Users/adam/.conan/data/openimageio/2.3.13.0-raw/adam/testing/build/8f2397dea8c6aae6efd8960f19d9e0ae8af5d976/source_subfolder/src/raw.imageio/rawoutput.cpp:195:32: error: non-constant-expression cannot be narrowed from type 'int' to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] | |
m_spec.full_x, | |
^~~~~~~~~~~~~ | |
/Users/adam/.conan/data/openimageio/2.3.13.0-raw/adam/testing/build/8f2397dea8c6aae6efd8960f19d9e0ae8af5d976/source_subfolder/src/raw.imageio/rawoutput.cpp:195:32: note: insert an explicit cast to silence this issue | |
m_spec.full_x, | |
^~~~~~~~~~~~~ | |
static_cast<uint32_t>( ) | |
/Users/adam/.conan/data/openimageio/2.3.13.0-raw/adam/testing/build/8f2397dea8c6aae6efd8960f19d9e0ae8af5d976/source_subfolder/src/raw.imageio/rawoutput.cpp:196:32: error: non-constant-expression cannot be narrowed from type 'int' to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] | |
m_spec.full_y + m_spec.full_height, | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Users/adam/.conan/data/openimageio/2.3.13.0-raw/adam/testing/build/8f2397dea8c6aae6efd8960f19d9e0ae8af5d976/source_subfolder/src/raw.imageio/rawoutput.cpp:196:32: note: insert an explicit cast to silence this issue | |
m_spec.full_y + m_spec.full_height, | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
static_cast<uint32_t>( ) | |
/Users/adam/.conan/data/openimageio/2.3.13.0-raw/adam/testing/build/8f2397dea8c6aae6efd8960f19d9e0ae8af5d976/source_subfolder/src/raw.imageio/rawoutput.cpp:197:32: error: non-constant-expression cannot be narrowed from type 'int' to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] | |
m_spec.full_x + m_spec.full_width}; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Users/adam/.conan/data/openimageio/2.3.13.0-raw/adam/testing/build/8f2397dea8c6aae6efd8960f19d9e0ae8af5d976/source_subfolder/src/raw.imageio/rawoutput.cpp:197:32: note: insert an explicit cast to silence this issue | |
m_spec.full_x + m_spec.full_width}; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
static_cast<uint32_t>( ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment