@@ -271,12 +271,12 @@ namespace winrt::impl
271271 }
272272
273273 template <size_t Size>
274- constexpr std::array<uint32_t , 5 > process_msg_block (std::array<uint8_t , Size> const & input, uint32_t start_pos, std::array<uint32_t , 5 > const & intermediate_hash) noexcept
274+ constexpr std::array<uint32_t , 5 > process_msg_block (std::array<uint8_t , Size> const & input, size_t start_pos, std::array<uint32_t , 5 > const & intermediate_hash) noexcept
275275 {
276276 uint32_t const K[4 ] = { 0x5A827999 , 0x6ED9EBA1 , 0x8F1BBCDC , 0xCA62C1D6 };
277277 std::array<uint32_t , 80 > W = {};
278278
279- uint32_t t = 0 ;
279+ size_t t = 0 ;
280280 uint32_t temp = 0 ;
281281
282282 for (t = 0 ; t < 16 ; t++)
@@ -357,13 +357,13 @@ namespace winrt::impl
357357 }
358358
359359 template <size_t Size, size_t RemainingSize, size_t ... Index>
360- constexpr std::array<uint8_t , RemainingSize + 1 > make_remaining ([[maybe_unused]] std::array<uint8_t , Size> const & input, [[maybe_unused]] uint32_t start_pos, std::index_sequence<Index...>) noexcept
360+ constexpr std::array<uint8_t , RemainingSize + 1 > make_remaining ([[maybe_unused]] std::array<uint8_t , Size> const & input, [[maybe_unused]] size_t start_pos, std::index_sequence<Index...>) noexcept
361361 {
362362 return { input[Index + start_pos]..., 0x80 };
363363 }
364364
365365 template <size_t Size>
366- constexpr auto make_remaining (std::array<uint8_t , Size> const & input, uint32_t start_pos) noexcept
366+ constexpr auto make_remaining (std::array<uint8_t , Size> const & input, size_t start_pos) noexcept
367367 {
368368 constexpr auto remaining_size = Size % 64 ;
369369 return make_remaining<Size, remaining_size>(input, start_pos, std::make_index_sequence<remaining_size>());
@@ -409,7 +409,7 @@ namespace winrt::impl
409409 constexpr auto calculate_sha1 (std::array<uint8_t , Size> const & input) noexcept
410410 {
411411 std::array<uint32_t , 5 > intermediate_hash{ 0x67452301 , 0xEFCDAB89 , 0x98BADCFE , 0x10325476 , 0xC3D2E1F0 };
412- uint32_t i = 0 ;
412+ size_t i = 0 ;
413413
414414 while (i + 64 <= Size)
415415 {
@@ -536,44 +536,44 @@ namespace winrt::impl
536536 constexpr guid generic_guid_v{};
537537
538538 template <typename T>
539- constexpr auto & basic_signature_v{ " " } ;
540-
541- template <> inline constexpr auto & basic_signature_v<bool >{ " b1" } ;
542- template <> inline constexpr auto & basic_signature_v<int8_t >{ " i1" } ;
543- template <> inline constexpr auto & basic_signature_v<int16_t >{ " i2" } ;
544- template <> inline constexpr auto & basic_signature_v<int32_t >{ " i4" } ;
545- template <> inline constexpr auto & basic_signature_v<int64_t >{ " i8" } ;
546- template <> inline constexpr auto & basic_signature_v<uint8_t >{ " u1" } ;
547- template <> inline constexpr auto & basic_signature_v<uint16_t >{ " u2" } ;
548- template <> inline constexpr auto & basic_signature_v<uint32_t >{ " u4" } ;
549- template <> inline constexpr auto & basic_signature_v<uint64_t >{ " u8" } ;
550- template <> inline constexpr auto & basic_signature_v<float >{ " f4" } ;
551- template <> inline constexpr auto & basic_signature_v<double >{ " f8" } ;
552- template <> inline constexpr auto & basic_signature_v<char16_t >{ " c2" } ;
553- template <> inline constexpr auto & basic_signature_v<guid>{ " g16" } ;
554- template <> inline constexpr auto & basic_signature_v<hstring>{ " string" } ;
555- template <> inline constexpr auto & basic_signature_v<Windows::Foundation::IInspectable>{ " cinterface(IInspectable)" } ;
556-
557- template <> inline constexpr auto & name_v<bool >{ L" Boolean" } ;
558- template <> inline constexpr auto & name_v<int8_t >{ L" Int8" } ;
559- template <> inline constexpr auto & name_v<int16_t >{ L" Int16" } ;
560- template <> inline constexpr auto & name_v<int32_t >{ L" Int32" } ;
561- template <> inline constexpr auto & name_v<int64_t >{ L" Int64" } ;
562- template <> inline constexpr auto & name_v<uint8_t >{ L" UInt8" } ;
563- template <> inline constexpr auto & name_v<uint16_t >{ L" UInt16" } ;
564- template <> inline constexpr auto & name_v<uint32_t >{ L" UInt32" } ;
565- template <> inline constexpr auto & name_v<uint64_t >{ L" UInt64" } ;
566- template <> inline constexpr auto & name_v<float >{ L" Single" } ;
567- template <> inline constexpr auto & name_v<double >{ L" Double" } ;
568- template <> inline constexpr auto & name_v<char16_t >{ L" Char16" } ;
569- template <> inline constexpr auto & name_v<guid>{ L" Guid" } ;
570- template <> inline constexpr auto & name_v<hstring>{ L" String" } ;
571- template <> inline constexpr auto & name_v<hresult>{ L" Windows.Foundation.HResult" } ;
572- template <> inline constexpr auto & name_v<event_token>{ L" Windows.Foundation.EventRegistrationToken" } ;
573- template <> inline constexpr auto & name_v<Windows::Foundation::IInspectable>{ L" Object" } ;
574- template <> inline constexpr auto & name_v<Windows::Foundation::TimeSpan>{ L" Windows.Foundation.TimeSpan" } ;
575- template <> inline constexpr auto & name_v<Windows::Foundation::DateTime>{ L" Windows.Foundation.DateTime" } ;
576- template <> inline constexpr auto & name_v<IAgileObject>{ L" IAgileObject" } ;
539+ constexpr auto & basic_signature_v = " " ;
540+
541+ template <> inline constexpr auto & basic_signature_v<bool > = " b1" ;
542+ template <> inline constexpr auto & basic_signature_v<int8_t > = " i1" ;
543+ template <> inline constexpr auto & basic_signature_v<int16_t > = " i2" ;
544+ template <> inline constexpr auto & basic_signature_v<int32_t > = " i4" ;
545+ template <> inline constexpr auto & basic_signature_v<int64_t > = " i8" ;
546+ template <> inline constexpr auto & basic_signature_v<uint8_t > = " u1" ;
547+ template <> inline constexpr auto & basic_signature_v<uint16_t > = " u2" ;
548+ template <> inline constexpr auto & basic_signature_v<uint32_t > = " u4" ;
549+ template <> inline constexpr auto & basic_signature_v<uint64_t > = " u8" ;
550+ template <> inline constexpr auto & basic_signature_v<float > = " f4" ;
551+ template <> inline constexpr auto & basic_signature_v<double > = " f8" ;
552+ template <> inline constexpr auto & basic_signature_v<char16_t > = " c2" ;
553+ template <> inline constexpr auto & basic_signature_v<guid> = " g16" ;
554+ template <> inline constexpr auto & basic_signature_v<hstring> = " string" ;
555+ template <> inline constexpr auto & basic_signature_v<Windows::Foundation::IInspectable> = " cinterface(IInspectable)" ;
556+
557+ template <> inline constexpr auto & name_v<bool > = L" Boolean" ;
558+ template <> inline constexpr auto & name_v<int8_t > = L" Int8" ;
559+ template <> inline constexpr auto & name_v<int16_t > = L" Int16" ;
560+ template <> inline constexpr auto & name_v<int32_t > = L" Int32" ;
561+ template <> inline constexpr auto & name_v<int64_t > = L" Int64" ;
562+ template <> inline constexpr auto & name_v<uint8_t > = L" UInt8" ;
563+ template <> inline constexpr auto & name_v<uint16_t > = L" UInt16" ;
564+ template <> inline constexpr auto & name_v<uint32_t > = L" UInt32" ;
565+ template <> inline constexpr auto & name_v<uint64_t > = L" UInt64" ;
566+ template <> inline constexpr auto & name_v<float > = L" Single" ;
567+ template <> inline constexpr auto & name_v<double > = L" Double" ;
568+ template <> inline constexpr auto & name_v<char16_t > = L" Char16" ;
569+ template <> inline constexpr auto & name_v<guid> = L" Guid" ;
570+ template <> inline constexpr auto & name_v<hstring> = L" String" ;
571+ template <> inline constexpr auto & name_v<hresult> = L" Windows.Foundation.HResult" ;
572+ template <> inline constexpr auto & name_v<event_token> = L" Windows.Foundation.EventRegistrationToken" ;
573+ template <> inline constexpr auto & name_v<Windows::Foundation::IInspectable> = L" Object" ;
574+ template <> inline constexpr auto & name_v<Windows::Foundation::TimeSpan> = L" Windows.Foundation.TimeSpan" ;
575+ template <> inline constexpr auto & name_v<Windows::Foundation::DateTime> = L" Windows.Foundation.DateTime" ;
576+ template <> inline constexpr auto & name_v<IAgileObject> = L" IAgileObject" ;
577577
578578 template <> struct category <bool > { using type = basic_category; };
579579 template <> struct category <int8_t > { using type = basic_category; };
0 commit comments