Skip to content

Commit

Permalink
Fixed|64-bit: Ambiguous template arguments for de::min
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 26, 2015
1 parent 306739f commit 257af9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/apps/client/src/network/net_main.cpp
Expand Up @@ -755,11 +755,11 @@ static dd_bool tokenize(char const *line, char *label, char *value, int valueSiz
DENG2_ASSERT(label && value);

// Copy the label.
qstrncpy(label, src, de::min(colon - src + 1, valueSize));
qstrncpy(label, src, de::min(int(colon - src + 1), valueSize));

// Copy the value.
char const *end = line + qstrlen(line);
qstrncpy(value, colon + 1, de::min(end - colon, valueSize));
qstrncpy(value, colon + 1, de::min(int(end - colon), valueSize));

// Everything is OK.
return true;
Expand Down

0 comments on commit 257af9b

Please sign in to comment.