mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
Fix a new compilation warning with broken-mulodi i386 clang builds. :(
This commit is contained in:
parent
7026b607a0
commit
5a9696fad8
@ -17,6 +17,7 @@
|
||||
#else
|
||||
#define COMPILER_RT_ABI
|
||||
#define di_int int64_t
|
||||
#define di_uint uint64_t
|
||||
#include "torint.h"
|
||||
|
||||
di_int __mulodi4(di_int a, di_int b, int* overflow);
|
||||
@ -30,7 +31,7 @@ COMPILER_RT_ABI di_int
|
||||
__mulodi4(di_int a, di_int b, int* overflow)
|
||||
{
|
||||
const int N = (int)(sizeof(di_int) * CHAR_BIT);
|
||||
const di_int MIN = (di_int)1 << (N-1);
|
||||
const di_int MIN = (di_int) ((di_uint)1 << (N-1));
|
||||
const di_int MAX = ~MIN;
|
||||
*overflow = 0;
|
||||
di_int result = a * b;
|
||||
|
Loading…
Reference in New Issue
Block a user