Skip to content

Commit

Permalink
Squashed 'subtree/rabit/' changes from 24f17df..fa99857
Browse files Browse the repository at this point in the history
fa99857 try fix warning on some platforms

git-subtree-dir: subtree/rabit
git-subtree-split: fa99857
  • Loading branch information
tqchen committed May 2, 2015
1 parent c77fa7a commit 7258f33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/allreduce_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ void AllreduceBase::TrackerPrint(const std::string &msg) {
// util to parse data with unit suffix
inline size_t ParseUnit(const char *name, const char *val) {
char unit;
uint64_t amount;
int n = sscanf(val, "%lu%c", &amount, &unit);
unsigned long amt;
int n = sscanf(val, "%lu%c", &amt, &unit);
size_t amount = amt;
if (n == 2) {
switch (unit) {
case 'B': return amount;
Expand Down

0 comments on commit 7258f33

Please sign in to comment.