From 1582180e5b5264afe5f19cf43ec11d14b050efe8 Mon Sep 17 00:00:00 2001 From: Chuntao Hong Date: Wed, 20 May 2015 10:09:09 +0800 Subject: [PATCH] use int32_t to define int and int64_t to define long. in VC long is 32bit --- include/rabit/rabit-inl.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/rabit/rabit-inl.h b/include/rabit/rabit-inl.h index 3d1ec59a8..27a130468 100644 --- a/include/rabit/rabit-inl.h +++ b/include/rabit/rabit-inl.h @@ -7,6 +7,7 @@ #ifndef RABIT_RABIT_INL_H #define RABIT_RABIT_INL_H // use engine for implementation +#include #include "./io.h" #include "./utils.h" #include "../rabit.h" @@ -26,19 +27,19 @@ inline DataType GetType(void) { return kUChar; } template<> -inline DataType GetType(void) { +inline DataType GetType(void) { return kInt; } template<> -inline DataType GetType(void) { +inline DataType GetType(void) { return kUInt; } template<> -inline DataType GetType(void) { +inline DataType GetType(void) { return kLong; } template<> -inline DataType GetType(void) { +inline DataType GetType(void) { return kULong; } template<>