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
|
||||
#define RABIT_RABIT_INL_H
|
||||
// use engine for implementation
|
||||
#include <cstdint>
|
||||
#include "./io.h"
|
||||
#include "./utils.h"
|
||||
#include "../rabit.h"
|
||||
@ -26,19 +27,19 @@ inline DataType GetType<unsigned char>(void) {
|
||||
return kUChar;
|
||||
}
|
||||
template<>
|
||||
inline DataType GetType<int>(void) {
|
||||
inline DataType GetType<int32_t>(void) {
|
||||
return kInt;
|
||||
}
|
||||
template<>
|
||||
inline DataType GetType<unsigned>(void) {
|
||||
inline DataType GetType<uint32_t>(void) {
|
||||
return kUInt;
|
||||
}
|
||||
template<>
|
||||
inline DataType GetType<long>(void) {
|
||||
inline DataType GetType<int64_t>(void) {
|
||||
return kLong;
|
||||
}
|
||||
template<>
|
||||
inline DataType GetType<unsigned long>(void) {
|
||||
inline DataType GetType<uint64_t>(void) {
|
||||
return kULong;
|
||||
}
|
||||
template<>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user