From: Michael Friedrich Date: Thu, 15 Oct 2015 09:10:46 +0000 (+0200) Subject: Fix wrong type for object version X-Git-Tag: v2.4.0~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0631cd3510b803adf6865623408b6035999438a;p=icinga2 Fix wrong type for object version refs #10355 --- diff --git a/lib/remote/apilistener-configsync.cpp b/lib/remote/apilistener-configsync.cpp index 297b69279..4a5983599 100644 --- a/lib/remote/apilistener-configsync.cpp +++ b/lib/remote/apilistener-configsync.cpp @@ -102,7 +102,7 @@ Value ApiListener::ConfigUpdateObjectAPIHandler(const MessageOrigin::Ptr& origin } /* update the object */ - double objVersion = Convert::ToLong(params->Get("version")); + double objVersion = params->Get("version"); ConfigType::Ptr dtype = ConfigType::GetByName(objType);