Commit e88280ed authored by Andreas Schuh's avatar Andreas Schuh

Fix "invalid suffix on literal; C++11 requires a space between literal and…

Fix "invalid suffix on literal; C++11 requires a space between literal and identifier" errors as reported by http://code.google.com/p/gflags/issues/detail?id=54.

git-svn-id: https://gflags.googlecode.com/svn/trunk@77 6586e3c6-dcc4-952a-343f-ff74eb82781d
parent 8306eef3
...@@ -348,13 +348,13 @@ string FlagValue::ToString() const { ...@@ -348,13 +348,13 @@ string FlagValue::ToString() const {
case FV_BOOL: case FV_BOOL:
return VALUE_AS(bool) ? "true" : "false"; return VALUE_AS(bool) ? "true" : "false";
case FV_INT32: case FV_INT32:
snprintf(intbuf, sizeof(intbuf), "%"PRId32, VALUE_AS(int32)); snprintf(intbuf, sizeof(intbuf), "%" PRId32, VALUE_AS(int32));
return intbuf; return intbuf;
case FV_INT64: case FV_INT64:
snprintf(intbuf, sizeof(intbuf), "%"PRId64, VALUE_AS(int64)); snprintf(intbuf, sizeof(intbuf), "%" PRId64, VALUE_AS(int64));
return intbuf; return intbuf;
case FV_UINT64: case FV_UINT64:
snprintf(intbuf, sizeof(intbuf), "%"PRIu64, VALUE_AS(uint64)); snprintf(intbuf, sizeof(intbuf), "%" PRIu64, VALUE_AS(uint64));
return intbuf; return intbuf;
case FV_DOUBLE: case FV_DOUBLE:
snprintf(intbuf, sizeof(intbuf), "%.17g", VALUE_AS(double)); snprintf(intbuf, sizeof(intbuf), "%.17g", VALUE_AS(double));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment