diff options
| author | Peter Moulder <peter.moulder@monash.edu> | 2008-06-05 06:28:20 +0000 |
|---|---|---|
| committer | pjrm <pjrm@users.sourceforge.net> | 2008-06-05 06:28:20 +0000 |
| commit | 2dfebc67705273fa4fbd319a9bccbd9b43cead12 (patch) | |
| tree | 5bf9ce0b50807473c9a4a8e6a62d149c54b33328 /src/PylogFormatter.h | |
| parent | Fix expression whose behaviour is undefined in C++. N.B. This “fix” invo... (diff) | |
| download | inkscape-2dfebc67705273fa4fbd319a9bccbd9b43cead12.tar.gz inkscape-2dfebc67705273fa4fbd319a9bccbd9b43cead12.zip | |
fix compile with g++-4.3.
(bzr r5810)
Diffstat (limited to '')
| -rw-r--r-- | src/PylogFormatter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/PylogFormatter.h b/src/PylogFormatter.h index f2d72ea04..adfc9a7f1 100644 --- a/src/PylogFormatter.h +++ b/src/PylogFormatter.h @@ -1,6 +1,7 @@ #ifndef PYLOG_FORMATTER_H_SEEN #define PYLOG_FORMATTER_H_SEEN +#include <cstring> #include <cxxtest/Flags.h> #ifndef _CXXTEST_HAVE_STD @@ -38,6 +39,7 @@ public: virtual void leaveWorld( const WorldDescription & desc ) { + using std::strlen; unsigned int skippedCount = 0; unsigned int failedCount = 0; unsigned int warnedCount = 0; @@ -59,8 +61,8 @@ public: (*_o) << test.suiteName() << "_|_" << test.testName(); (*_o) << " "; - int sent = strlen( test.suiteName() ) + strlen( test.testName() ) + 1; - for ( int z = sent; z < 56; z++ ) { + unsigned const sent = strlen( test.suiteName() ) + strlen( test.testName() ) + 1; + for ( unsigned z = sent; z < 56; z++ ) { (*_o) << " "; } |
