From: Michael Lee <mzlee@fb.com>
Date: Mon, 21 Mar 2016 22:52:19 +0000 (-0700)
Subject: Have StringTest use PRI*64 instead
X-Git-Tag: 2016.07.26~422
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=948ec49b5a2d1601eae65d19d8da3d2c9d6752e6;p=folly.git

Have StringTest use PRI*64 instead

Summary: This helps account for 32-bit vs. 64-bit compilation targets.

Reviewed By: benyl

Differential Revision: D3076523

fb-gh-sync-id: 56f49daaf55d242ac48f8b8d38a40c6d6230818b
shipit-source-id: 56f49daaf55d242ac48f8b8d38a40c6d6230818b
---

diff --git a/folly/test/StringTest.cpp b/folly/test/StringTest.cpp
index a776b88a..55ceefa0 100644
--- a/folly/test/StringTest.cpp
+++ b/folly/test/StringTest.cpp
@@ -40,8 +40,8 @@ TEST(StringPrintf, NumericFormats) {
   EXPECT_EQ("5000000000", stringPrintf("%lld", 5000000000LL));
   EXPECT_EQ("-5000000000", stringPrintf("%lld", -5000000000LL));
   EXPECT_EQ("-1", stringPrintf("%d", 0xffffffff));
-  EXPECT_EQ("-1", stringPrintf("%ld", 0xffffffffffffffff));
-  EXPECT_EQ("-1", stringPrintf("%ld", 0xffffffffffffffffUL));
+  EXPECT_EQ("-1", stringPrintf("%" PRId64, 0xffffffffffffffff));
+  EXPECT_EQ("-1", stringPrintf("%" PRId64, 0xffffffffffffffffUL));
 
   EXPECT_EQ("7.7", stringPrintf("%1.1f", 7.7));
   EXPECT_EQ("7.7", stringPrintf("%1.1lf", 7.7));