mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Fix Visual Studio throwing C4146 warning.
This commit is contained in:
parent
3c83137771
commit
6c3be2ca74
@ -3769,8 +3769,8 @@ ShaderLanguage::Node *ShaderLanguage::_reduce_expression(BlockNode *p_block, Sha
|
||||
nv.sint = -cn->values[i].sint;
|
||||
} break;
|
||||
case TYPE_UINT: {
|
||||
// FIXME: This can't work on uint
|
||||
nv.uint = -cn->values[i].uint;
|
||||
// Intentionally wrap the unsigned int value, because GLSL does.
|
||||
nv.uint = 0 - cn->values[i].uint;
|
||||
} break;
|
||||
case TYPE_FLOAT: {
|
||||
nv.real = -cn->values[i].real;
|
||||
|
Loading…
Reference in New Issue
Block a user