From 52a96c4e9dc21b53ccfa753e922e67981bca4d36 Mon Sep 17 00:00:00 2001 From: simonb Date: Sun, 8 Apr 2007 01:59:41 +0000 Subject: use proper test for whether it's a number. --- src/ClockTool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClockTool.cc b/src/ClockTool.cc index 99cbb06..a259848 100644 --- a/src/ClockTool.cc +++ b/src/ClockTool.cc @@ -227,7 +227,7 @@ void ClockTool::update(FbTk::Subject *subj) { int textlen = text.size(); for (int i=0; i < textlen; ++i) { - if (text[i] > '0' && text[i] <= '9') // don't bother replacing zeros + if (isdigit(text[i])) // don't bother replacing zeros text[i] = '0'; } text.append("00"); // pad -- cgit v0.11.2