Skip to content

Commit 37a56fc

Browse files
committed
more detailed endian errors
1 parent e2191a2 commit 37a56fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PhotoshopAPI/src/Core/Endian/EndianByteSwap.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PSAPI_NAMESPACE_BEGIN
2626
template<typename T>
2727
T endianDecodeBE(const uint8_t* src)
2828
{
29-
PSAPI_LOG_ERROR("Endian", "No Byte Swap defined for the given type: %s", PSAPI_FUNCSIG);
29+
PSAPI_LOG_ERROR("Endian", "No Byte Swap defined for the given type with sizeof(): %u: %s", sizeof(T), PSAPI_FUNCSIG);
3030
return T{};
3131
};
3232

@@ -171,7 +171,7 @@ inline float64_t endianDecodeBE<float64_t>(const uint8_t* src)
171171
template<typename T>
172172
T endianEncodeBE([[maybe_unused]] const T src)
173173
{
174-
PSAPI_LOG_ERROR("Endian", "No Byte Swap defined for the given type: %s", PSAPI_FUNCSIG);
174+
PSAPI_LOG_ERROR("Endian", "No Byte Swap defined for the given type with sizeof(): %u: %s", sizeof(T), PSAPI_FUNCSIG);
175175
return T{};
176176
}
177177

0 commit comments

Comments
 (0)