bump SkStrAppendScalar_MaxSize to 15 to handle 3-digit exponents on some

platforms (like windows)



git-svn-id: http://skia.googlecode.com/svn/trunk@881 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-03-03 18:43:14 +00:00
parent 677cbedda7
commit e280f1d164

View File

@ -33,9 +33,12 @@ char* SkStrAppendS64(char buffer[], int64_t, int minDigits);
/**
* Floats have at most 8 significant digits, so we limit our %g to that.
* However, the total string could be 14 characters: -1.2345678e+38
* However, the total string could be 15 characters: -1.2345678e-005
*
* In theory we should only expect up to 2 digits for the exponent, but on
* some platforms we have seen 3 (as in the example above).
*/
#define SkStrAppendScalar_MaxSize 14
#define SkStrAppendScalar_MaxSize 15
/**
* Write the scaler in decimal format into buffer, and return a pointer to