Skip to content

Commit

Permalink
use int32_t to define int and int64_t to define long. in VC long is 3…
Browse files Browse the repository at this point in the history
…2bit
  • Loading branch information
hjk41 committed May 20, 2015
1 parent e0b7da0 commit 1582180
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/rabit/rabit-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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<>
Expand Down

0 comments on commit 1582180

Please sign in to comment.