summaryrefslogtreecommitdiff
path: root/pcrecpp_unittest.cc
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-08-02 08:37:31 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-08-02 08:37:31 +0000
commit569ff321e6c24c82804d82fc1c0ef1bb9f0f5328 (patch)
treeac719e0aa8860f6e40a5bccbae68ef83f55bc47d /pcrecpp_unittest.cc
parent01eeb658525bc9a5b840253f8b415af6abe282e0 (diff)
downloadpcre-569ff321e6c24c82804d82fc1c0ef1bb9f0f5328.tar.gz
Update version number; use %I64U instead of %llu under MingGW in
pcrecpp_unittest. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@201 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp_unittest.cc')
-rw-r--r--pcrecpp_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcrecpp_unittest.cc b/pcrecpp_unittest.cc
index 795e77a..787f143 100644
--- a/pcrecpp_unittest.cc
+++ b/pcrecpp_unittest.cc
@@ -910,8 +910,10 @@ int main(int argc, char** argv) {
#ifdef HAVE_LONG_LONG
# if defined(__MINGW__) || defined(__MINGW32__)
# define LLD "%I64d"
+# define LLU "%I64u"
# else
# define LLD "%lld"
+# define LLU "%llu"
# endif
{
long long v;
@@ -949,7 +951,7 @@ int main(int argc, char** argv) {
CHECK(RE("(-?\\d+)").FullMatch("100",&v)); CHECK_EQ(v, 100);
CHECK(RE("(-?\\d+)").FullMatch("-100",&v2)); CHECK_EQ(v2, -100);
- snprintf(buf, sizeof(buf), "%llu", max_value);
+ snprintf(buf, sizeof(buf), LLU, max_value);
CHECK(RE("(-?\\d+)").FullMatch(buf,&v)); CHECK_EQ(v, max_value);
assert(buf[strlen(buf)-1] != '9');