From: Maxim Mamontov Date: Thu, 27 Jan 2011 14:12:52 +0000 (+0200) Subject: Тимчасово прибрано тип size_t із налаштуваннь X-Git-Tag: 2.407-rc3~191 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/09a9984d2d13448614d92b8e3ab4cdf10abc0b68?ds=inline Тимчасово прибрано тип size_t із налаштуваннь --- diff --git a/projects/stargazer/settings.cpp b/projects/stargazer/settings.cpp index 84de336b..7aa2950f 100644 --- a/projects/stargazer/settings.cpp +++ b/projects/stargazer/settings.cpp @@ -317,7 +317,7 @@ while (node) if (strcasecmp(node->getName(), "ExecutersNum") == 0) { - if (ParseUnsignedInRange(node->getValue(0), 1, 1024, static_cast(&executersNum)) != 0) + if (ParseUnsignedInRange(node->getValue(0), 1, 1024, &executersNum) != 0) { strError = "Incorrect ExecutersNum value: \'" + string(node->getValue(0)) + "\'"; return -1; diff --git a/projects/stargazer/settings.h b/projects/stargazer/settings.h index 03ace0a0..711b43e6 100644 --- a/projects/stargazer/settings.h +++ b/projects/stargazer/settings.h @@ -69,7 +69,7 @@ public: string GetStrError() const { return strError; }; int GetExecMsgKey() const { return stgExecMsgKey; }; - size_t GetExecutersNum() const { return executersNum; }; + unsigned GetExecutersNum() const { return executersNum; }; const string & GetDirName(int num) const { return dirName[num]; }; const string & GetConfDir() const { return confDir; }; const string & GetScriptDir() const { return scriptDir; }; @@ -125,7 +125,7 @@ private: unsigned detailStatWritePeriod; unsigned statWritePeriod; int stgExecMsgKey; - size_t executersNum; + unsigned executersNum; bool fullFee; unsigned dayFee; // ÄÅÎØ ÓÎÑÔÉÑ ÁÂÏÎÐÌÁÔÙ unsigned dayResetTraff; // îÁÞÁÌÏ ÕÞÅÔÎÏÇÏ ÐÅÒÉÏÄÁ: ÄÅÎØ ÏÂÎÕÌÅÎÉÑ ÔÒÁÆÉËÁ É ÓÍÅÎÙ ÔÁÒÉÆÁ