Skip to content
Snippets Groups Projects
Commit a6d9b578 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

Shut up VS warning.

parent d4d3a273
No related branches found
Tags cdi-1.5.9
No related merge requests found
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
uint32_t mask = (data & med)?xmax:0; \ uint32_t mask = (data & med)?xmax:0; \
\ \
/*in this case: xmax - data == xmax ^ data */ \ /*in this case: xmax - data == xmax ^ data */ \
if (half_d <= (mask ^ data)) { \ if (half_d <= (mask ^ (uint32_t)data)) { \
data += (d >> 1)^(~((d & 1) - 1)); \ data += (d >> 1)^(~((d & 1) - 1)); \
} else { \ } else { \
data = mask ^ d; \ data = mask ^ d; \
...@@ -117,13 +117,13 @@ ...@@ -117,13 +117,13 @@
half_d = ((uint32_t)d >> 1) + (d & 1); \ half_d = ((uint32_t)d >> 1) + (d & 1); \
\ \
if (data < 0) { \ if (data < 0) { \
if (half_d <= xmax + data + 1) { \ if (half_d <= xmax + (uint32_t)data + 1) { \
data += ((uint32_t)d >> 1)^(~((d & 1) - 1)); \ data += ((uint32_t)d >> 1)^(~((d & 1) - 1)); \
} else { \ } else { \
data = d - xmax - 1; \ data = d - xmax - 1; \
} \ } \
} else { \ } else { \
if (half_d <= xmax - data) { \ if (half_d <= xmax - (uint32_t)data) { \
data += ((uint32_t)d >> 1)^(~((d & 1) - 1)); \ data += ((uint32_t)d >> 1)^(~((d & 1) - 1)); \
} else { \ } else { \
data = xmax - d; \ data = xmax - d; \
......
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