[Debian-iot-packaging] [openzwave-controlpanel] 71/81: Fixed 255 limit for values
Dara Adib
daradib-guest at moszumanska.debian.org
Thu Dec 22 16:57:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
daradib-guest pushed a commit to branch debian/master
in repository openzwave-controlpanel.
commit 3b4ec1d26bb85878d8bac48c0a7f995f182d35e8
Author: Gaston Dombiak <gdombiak at gmail.com>
Date: Sun Jul 10 10:43:14 2016 -0700
Fixed 255 limit for values
---
ozwcp.cpp | 4 ++--
ozwcp.h | 4 ++--
webserver.cpp | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ozwcp.cpp b/ozwcp.cpp
index 50b25e5..0f57192 100644
--- a/ozwcp.cpp
+++ b/ozwcp.cpp
@@ -414,7 +414,7 @@ MyValue *MyNode::lookup (string data)
/*
* Returns a count of values
*/
-int32 MyNode::getValueCount ()
+uint16 MyNode::getValueCount ()
{
return values.size();
}
@@ -422,7 +422,7 @@ int32 MyNode::getValueCount ()
/*
* Returns an n'th value
*/
-MyValue *MyNode::getValue (uint8 n)
+MyValue *MyNode::getValue (uint16 n)
{
if (n < values.size())
return values[n];
diff --git a/ozwcp.h b/ozwcp.h
index 7f8e0c0..be08734 100644
--- a/ozwcp.h
+++ b/ozwcp.h
@@ -88,9 +88,9 @@ public:
void addValue(ValueID id);
void removeValue(ValueID id);
void saveValue(ValueID id);
- int32 getValueCount();
+ uint16 getValueCount();
static MyValue *lookup(string id);
- MyValue *getValue(uint8 n);
+ MyValue *getValue(uint16 n);
uint32 getTime() { return mtime; }
void setTime(uint32 t) { mtime = t; }
static bool getAnyChanged() { return nodechanged; }
diff --git a/webserver.cpp b/webserver.cpp
index dce86bd..357eeff 100644
--- a/webserver.cpp
+++ b/webserver.cpp
@@ -219,13 +219,13 @@ void Webserver::web_get_groups (int n, TiXmlElement *ep)
/*
* web_get_values
- * Retreive class values based on genres
+ * Retrieve class values based on genres
*/
void Webserver::web_get_values (int i, TiXmlElement *ep)
{
- int32 idcnt = nodes[i]->getValueCount();
+ uint16 idcnt = nodes[i]->getValueCount();
- for (int j = 0; j < idcnt; j++) {
+ for (uint16 j = 0; j < idcnt; j++) {
TiXmlElement* valueElement = new TiXmlElement("value");
MyValue *vals = nodes[i]->getValue(j);
ValueID id = vals->getId();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/openzwave-controlpanel.git
More information about the Debian-iot-packaging
mailing list