explicit casts help mitigate MSVC warnery
This commit is contained in:
parent
0f5dffb1c3
commit
b257c881b5
@ -56,7 +56,7 @@ struct String
|
||||
struct Number
|
||||
{
|
||||
Number() {}
|
||||
Number(double value) : value(value) {}
|
||||
Number(double value) : value(static_cast<double>(value)) {}
|
||||
double value;
|
||||
};
|
||||
|
||||
|
@ -1121,11 +1121,11 @@ class StaticRTree
|
||||
|
||||
if (SPECIAL_NODEID != result_phantom_node.forward_node_id)
|
||||
{
|
||||
result_phantom_node.forward_weight *= ratio;
|
||||
result_phantom_node.forward_weight *= static_cast<decltype(result_phantom_node.forward_weight)>(ratio);
|
||||
}
|
||||
if (SPECIAL_NODEID != result_phantom_node.reverse_node_id)
|
||||
{
|
||||
result_phantom_node.reverse_weight *= (1.f - ratio);
|
||||
result_phantom_node.reverse_weight *= static_cast<decltype(result_phantom_node.reverse_weight)>(1.f - ratio);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user