projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow folly to compile cleanly with most of the rest of MSVC's sign mismatch warnings
[folly.git]
/
folly
/
CpuId.h
diff --git
a/folly/CpuId.h
b/folly/CpuId.h
index 908480411ffdf69dfb5fffa7b819dd13a4df5711..26fa1979ba24fbab2462e37f5395ab3c8b2262b2 100644
(file)
--- a/
folly/CpuId.h
+++ b/
folly/CpuId.h
@@
-45,13
+45,13
@@
class CpuId {
const int n = reg[0];
if (n >= 1) {
__cpuid(static_cast<int*>(reg), 1);
const int n = reg[0];
if (n >= 1) {
__cpuid(static_cast<int*>(reg), 1);
- f1c_ =
reg[2]
;
- f1d_ =
reg[3]
;
+ f1c_ =
uint32_t(reg[2])
;
+ f1d_ =
uint32_t(reg[3])
;
}
if (n >= 7) {
__cpuidex(static_cast<int*>(reg), 7, 0);
}
if (n >= 7) {
__cpuidex(static_cast<int*>(reg), 7, 0);
- f7b_ =
reg[1]
;
- f7c_ =
reg[2]
;
+ f7b_ =
uint32_t(reg[1])
;
+ f7c_ =
uint32_t(reg[2])
;
}
#elif defined(__i386__) && defined(__PIC__) && !defined(__clang__) && \
defined(__GNUC__)
}
#elif defined(__i386__) && defined(__PIC__) && !defined(__clang__) && \
defined(__GNUC__)