Cleanup: Silence "integer conversion resulted in a change of sign" warning in Cycles kernel code

Occured because "PATH_RAY_SHADOW_CATCHER_BACKGROUND" is expressed as an unsigned
integer, because too large for a signed integer, but the "PathRayFlag" enum type defaulted to a
signed integer still.
This commit is contained in:
Patrick Mours 2022-01-03 16:26:15 +01:00
parent 8f9f65bc29
commit ca143fafa6
1 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ enum SamplingPattern {
/* These flags values correspond to `raytypes` in `osl.cpp`, so keep them in sync! */
enum PathRayFlag {
enum PathRayFlag : uint32_t {
/* --------------------------------------------------------------------
* Ray visibility.
*
@ -1559,7 +1559,7 @@ enum {
/* Kernel Features */
enum KernelFeatureFlag : unsigned int {
enum KernelFeatureFlag : uint32_t {
/* Shader nodes. */
KERNEL_FEATURE_NODE_BSDF = (1U << 0U),
KERNEL_FEATURE_NODE_EMISSION = (1U << 1U),