From 8d553690fbc0e1de9f78683768f5958473935461 Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Fri, 8 Jan 2016 19:57:24 -0500 Subject: [PATCH] Fixes a compiler error with C++Builder XE6 This is the generated error with CLANG 64-bit: [bcc64 Error] pkcspad.h(79): call to constructor of 'HashIdentifier' (aka 'pair') is ambiguous Casting the second parameter as size_t will fix the problem. This fix is not required in C++Builder XE7 and XE8, it must have been fixed. --- pkcspad.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkcspad.h b/pkcspad.h index 6a15b496..1af7c0ce 100644 --- a/pkcspad.h +++ b/pkcspad.h @@ -76,7 +76,7 @@ public: { static HashIdentifier Lookup() { - return HashIdentifier(PKCS_DigestDecoration::decoration, PKCS_DigestDecoration::length); + return HashIdentifier(PKCS_DigestDecoration::decoration, (size_t)PKCS_DigestDecoration::length); } }; };