]> git.ipfire.org Git - thirdparty/snort3.git/blobdiff - src/framework/parameter.cc
Pull request #4267: framework: add workaround to support case from double to unsigned
[thirdparty/snort3.git] / src / framework / parameter.cc
index 07606cb30b0ea76d86cd3a5dcc131d394764a9ea..12a85ade2302a2fdda87d6556dec73c1276905c5 100644 (file)
@@ -200,7 +200,7 @@ static bool valid_int(Value& v, const char* r)
     {
         double d = v.get_real();
         signed_values = (0.0 > d);
-        num = (uint64_t)d;
+        num = (uint64_t)(int64_t)d;
         break;
     }