mirror of
https://github.com/monero-project/monero.git
synced 2025-12-13 08:00:59 -08:00
@@ -44,9 +44,12 @@ reverse_bytes(signed char size, char *address){
|
|||||||
char * first = address;
|
char * first = address;
|
||||||
char * last = first + size - 1;
|
char * last = first + size - 1;
|
||||||
for(;first < last;++first, --last){
|
for(;first < last;++first, --last){
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wstringop-overflow="
|
||||||
char x = *last;
|
char x = *last;
|
||||||
*last = *first;
|
*last = *first;
|
||||||
*first = x;
|
*first = x;
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user