commit | 8f5cbdcfac11f83ac5912b033a1f41fcc99173f3 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Sun Sep 13 00:59:28 2015 +0200 |
committer | Alex Afanasyev <aa@cs.ucla.edu> | Sat Sep 19 14:03:16 2015 -0700 |
tree | aba05b4f69cb27519f0f76424ba0af1c4f5c070b | |
parent | f2a46228ef2be08a58ee3b49105146ad5e099ca1 [diff] [blame] |
Fix int vs. ssize_t type confusion Plus a typo in the target type of a static_cast. Change-Id: Icb8288baeab20d470c334742d989ffe231fdca7c
diff --git a/src/security/identity-certificate.cpp b/src/security/identity-certificate.cpp index 1eaceac..7a7180d 100644 --- a/src/security/identity-certificate.cpp +++ b/src/security/identity-certificate.cpp
@@ -68,7 +68,7 @@ IdentityCertificate::isCorrectName(const Name& name) { string idString("ID-CERT"); - int i = name.size() - 1; + ssize_t i = name.size() - 1; for (; i >= 0; i--) { if (name.get(i).toUri() == idString) break;