]> granicus.if.org Git - icinga2/commitdiff
Fix typeof() for numbers
authorGunnar Beutner <gunnar@beutner.name>
Tue, 9 Dec 2014 15:43:09 +0000 (16:43 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 9 Dec 2014 15:43:09 +0000 (16:43 +0100)
fixes #8028

lib/base/scriptutils.cpp

index e91a700f9d02faf2455e67e21abb0f93f24dac86..f5fceb72a75c53fe1db2e220143bed8a28540e49 100644 (file)
@@ -217,7 +217,7 @@ Type::Ptr ScriptUtils::TypeOf(const Value& value)
                case ValueEmpty:
                        return Type::GetByName("Object");
                case ValueNumber:
-                       return Type::GetByName("double");
+                       return Type::GetByName("Number");
                case ValueString:
                        return Type::GetByName("String");
                case ValueObject: