use int32_t to define int and int64_t to define long. in VC long is 32bit
This commit is contained in:
parent
e0b7da0302
commit
1582180e5b
@ -7,6 +7,7 @@
|
|||||||
#ifndef RABIT_RABIT_INL_H
|
#ifndef RABIT_RABIT_INL_H
|
||||||
#define RABIT_RABIT_INL_H
|
#define RABIT_RABIT_INL_H
|
||||||
// use engine for implementation
|
// use engine for implementation
|
||||||
|
#include <cstdint>
|
||||||
#include "./io.h"
|
#include "./io.h"
|
||||||
#include "./utils.h"
|
#include "./utils.h"
|
||||||
#include "../rabit.h"
|
#include "../rabit.h"
|
||||||
@ -26,19 +27,19 @@ inline DataType GetType<unsigned char>(void) {
|
|||||||
return kUChar;
|
return kUChar;
|
||||||
}
|
}
|
||||||
template<>
|
template<>
|
||||||
inline DataType GetType<int>(void) {
|
inline DataType GetType<int32_t>(void) {
|
||||||
return kInt;
|
return kInt;
|
||||||
}
|
}
|
||||||
template<>
|
template<>
|
||||||
inline DataType GetType<unsigned>(void) {
|
inline DataType GetType<uint32_t>(void) {
|
||||||
return kUInt;
|
return kUInt;
|
||||||
}
|
}
|
||||||
template<>
|
template<>
|
||||||
inline DataType GetType<long>(void) {
|
inline DataType GetType<int64_t>(void) {
|
||||||
return kLong;
|
return kLong;
|
||||||
}
|
}
|
||||||
template<>
|
template<>
|
||||||
inline DataType GetType<unsigned long>(void) {
|
inline DataType GetType<uint64_t>(void) {
|
||||||
return kULong;
|
return kULong;
|
||||||
}
|
}
|
||||||
template<>
|
template<>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user