24 lines
831 B
Diff
24 lines
831 B
Diff
commit eb90c044c0092da49e3cbf393ad68599354616b2
|
|
Author: q66 <daniel@octaforge.org>
|
|
Date: Sat Jan 4 23:12:59 2020 +0100
|
|
|
|
Fix build on some 64-bit big endian systems
|
|
|
|
The problem here is that qbswap is defined for quint64, which
|
|
is an alias to unsigned long long, while the uint64_t type in
|
|
the failing contexts is unsigned long.
|
|
|
|
This will fail with undefined reference to qbswap<unsigned long>.
|
|
|
|
--- goldendict-1.5.0/ripemd.cc 2023-05-29 16:51:31.000000000 +0200
|
|
+++ - 2023-06-24 18:02:27.579627739 +0200
|
|
@@ -174,7 +174,7 @@
|
|
|
|
void RIPEMD128::digest( uchar * digest )
|
|
{
|
|
- quint64 finalcount = qFromLittleEndian( count << 3 );
|
|
+ quint64 finalcount = qFromLittleEndian<quint64>( count << 3 );
|
|
update( (const uchar *) "\200", 1 );
|
|
while ( ( count & 63 ) != 56 )
|
|
update( ( const uchar * ) "", 1 );
|