Skip to content
Snippets Groups Projects
Commit 07c441d0 authored by Soeren Peters's avatar Soeren Peters
Browse files

remove 'register' storage class specifier, which is deprecated and incompatible with C++17

parent fe5f3452
No related branches found
No related tags found
No related merge requests found
...@@ -444,8 +444,8 @@ namespace UbSystem ...@@ -444,8 +444,8 @@ namespace UbSystem
//#define ByteSwap5(x) ByteSwap((unsigned char *) &x,sizeof(x)) //#define ByteSwap5(x) ByteSwap((unsigned char *) &x,sizeof(x))
inline void swapByteOrder(unsigned char* toSwap, int length) inline void swapByteOrder(unsigned char* toSwap, int length)
{ {
register int i = 0; int i = 0;
register int j = length-1; int j = length-1;
while(i<j) while(i<j)
{ {
std::swap(toSwap[i], toSwap[j]); std::swap(toSwap[i], toSwap[j]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment