mirror of
https://github.com/rust-lang/rust
synced 2024-11-02 11:53:40 +00:00
Auto merge of #39095 - nagisa:fix-ub-in-testhelp, r=alexcrichton
Fix UB in test helpers Macro expansion producing defined has undefined behavior in C/C++.
This commit is contained in:
commit
0825c96b14
1 changed files with 1 additions and 4 deletions
|
@ -269,10 +269,7 @@ LARGE_INTEGER increment_all_parts(LARGE_INTEGER li) {
|
|||
return li;
|
||||
}
|
||||
|
||||
#define DO_INT128_TEST !(defined(WIN32) || defined(_WIN32) || defined(__WIN32)) && \
|
||||
defined(__amd64__)
|
||||
|
||||
#if DO_INT128_TEST
|
||||
#if !(defined(WIN32) || defined(_WIN32) || defined(__WIN32)) && defined(__amd64__)
|
||||
|
||||
unsigned __int128 identity(unsigned __int128 a) {
|
||||
return a;
|
||||
|
|
Loading…
Reference in a new issue