]> granicus.if.org Git - clang/commitdiff
PR4247: Widen the buffer slightly so it can hold all the definitions for
authorEli Friedman <eli.friedman@gmail.com>
Sat, 23 May 2009 02:03:39 +0000 (02:03 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 23 May 2009 02:03:39 +0000 (02:03 +0000)
PPC double double.

(No testcase because no normal target uses the format at the moment.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitPreprocessor.cpp

index 8f4cdbc5f5d8e6fa8ff37c2fdd5ffdc965786d6d..a3fa6ebe64425502f3b7ae4ec0c53df90b7c8fa0 100644 (file)
@@ -161,7 +161,7 @@ static void DefineFloatMacros(std::vector<char> &Buf, const char *Prefix,
                "1.18973149535723176502e+4932L",
                "1.79769313486231580793728971405301e+308L");
   
-  char MacroBuf[60];
+  char MacroBuf[64];
   sprintf(MacroBuf, "__%s_DENORM_MIN__=%s", Prefix, DenormMin);
   DefineBuiltinMacro(Buf, MacroBuf);
   sprintf(MacroBuf, "__%s_DIG__=%d", Prefix, Digits);