Suppress MSVC warnings

This commit is contained in:
Peter Dimov
2024-01-06 07:42:32 +02:00
parent 71f21c757f
commit d4614204e5
3 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ void function_test()
struct Y
{
short operator()(short & r) const { return global_result = ++r; }
short operator()(short & r) const { return static_cast<short>( global_result = ++r ); }
int operator()(int a, int b) const { return global_result = a + 10 * b; }
long operator() (long a, long b, long c) const { return global_result = a + 10 * b + 100 * c; }
void operator() (long a, long b, long c, long d) const { global_result = a + 10 * b + 100 * c + 1000 * d; }