mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 12:18:51 +00:00
parent
6e60919e6d
commit
5858f05f9b
@ -44,9 +44,12 @@ reverse_bytes(signed char size, char *address){
|
||||
char * first = address;
|
||||
char * last = first + size - 1;
|
||||
for(;first < last;++first, --last){
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow="
|
||||
char x = *last;
|
||||
*last = *first;
|
||||
*first = x;
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user