Fix MSVC build.

This commit is contained in:
James Turner 2014-02-13 13:23:43 +00:00
parent 5fa0931a89
commit 574d459f4e

View File

@ -287,7 +287,7 @@ SGBucket SGBucket::sibling(int dx, int dy) const
std::string SGBucket::gen_index_str() const
{
char tmp[20];
std::snprintf(tmp, 20, "%ld",
::snprintf(tmp, 20, "%ld",
(((long)lon + 180) << 14) + ((lat + 90) << 6)
+ (y << 3) + x);
return (std::string)tmp;