comparison base/RealTime.cpp @ 957:df83865d886f

Fix accidental declaration of section as bool rather than int (definitely a bug but what did it cause? see #1051, we need units here) (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 09:46:28 +0100
parents 6a94bb528e9d
children ee9f4477f65b
comparison
equal deleted inserted replaced
956:d002827b5896 957:df83865d886f
206 206
207 RealTime 207 RealTime
208 RealTime::fromString(std::string s) 208 RealTime::fromString(std::string s)
209 { 209 {
210 bool negative = false; 210 bool negative = false;
211 bool section = 0; 211 int section = 0;
212 std::string ssec, snsec; 212 std::string ssec, snsec;
213 213
214 for (size_t i = 0; i < s.length(); ++i) { 214 for (size_t i = 0; i < s.length(); ++i) {
215 215
216 char c = s[i]; 216 char c = s[i];