Building wake.cpp with clang and -std=c++11 -stdlib=libc++ generates errors 
do narrowing.  I believe the following patch is the right way to fix these. 
 Any chance of getting this applied (or something else that makes it build 
out of the box) ?

Thanks,

Joseph

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
Index: wake.cpp
===================================================================
--- wake.cpp	(revision 533)
+++ wake.cpp	(working copy)
@@ -25,13 +25,13 @@
 	CRYPTOPP_COMPILE_ASSERT(sizeof(x) == 4);
 	static int tt[10]= {
 		0x726a8f3b,								 // table
-		0xe69a3b5c,
-		0xd3c71fe5,
-		0xab3c73d2,
+		static_cast<int>(0xe69a3b5c),
+		static_cast<int>(0xd3c71fe5),
+		static_cast<int>(0xab3c73d2),
 		0x4d3a8eb3,
 		0x0396d6e8,
 		0x3d4c2f7a,
-		0x9ee27cf3, } ;
+		static_cast<int>(0x9ee27cf3), } ;
 	t[0] = k0;
 	t[1] = k1;
 	t[2] = k2;

Reply via email to