From bd43c245e8c641c3a5c86762647f99658167b4db Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 20 Jul 2022 12:27:16 +0200 Subject: Port qt_doubleToAscii to qsizetype Allows central handling of large buffers. Adjust some callers. Pick-to: 6.4 6.3 Task-number: QTBUG-103531 Change-Id: Ib55974c3de250883cd0f6d11a7eee051c7fd11bc Reviewed-by: Thiago Macieira --- src/corelib/text/qlocale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/text/qlocale.cpp') diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp index e19a63fe1a..c42fa645c3 100644 --- a/src/corelib/text/qlocale.cpp +++ b/src/corelib/text/qlocale.cpp @@ -3541,7 +3541,7 @@ QString QLocaleData::doubleToString(double d, int precision, DoubleForm form, width = 0; int decpt; - int bufSize = 1; + qsizetype bufSize = 1; if (precision == QLocale::FloatingPointShortest) bufSize += std::numeric_limits::max_digits10; else if (form == DFDecimal && qIsFinite(d)) -- cgit v1.2.3