commit | 860b0ae2b74cb51c236638e50909d65ed0502b0e | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Sep 12 13:23:31 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Sep 12 13:23:31 2013 -0700 |
tree | 63775beac68732ed2bc628aa05a8b9eee469cc7d | |
parent | 145e2250735d7053fa775290d5388c59389cfc6b [diff] [blame] |
Fix bug in encodeBinaryXmlKeyLocator for checking type.
diff --git a/ndn-cpp/c/encoding/binary-xml-key.c b/ndn-cpp/c/encoding/binary-xml-key.c index 769ea16..4be24af 100644 --- a/ndn-cpp/c/encoding/binary-xml-key.c +++ b/ndn-cpp/c/encoding/binary-xml-key.c
@@ -61,7 +61,7 @@ ndn_Error ndn_encodeBinaryXmlKeyLocator(struct ndn_KeyLocator *keyLocator, struct ndn_BinaryXmlEncoder *encoder) { - if (keyLocator->type < 0) + if ((int)keyLocator->type < 0) return NDN_ERROR_success; ndn_Error error;