@@ -236,8 +236,11 @@ void __append_nine_digits(uint32_t __digits, char* const __result) {
236236#else // _EZ80
237237[[nodiscard]] to_chars_result __d2fixed_buffered_n (char * _First, char * const _Last, const long double __d,
238238#endif // _EZ80
239-
239+ # ifndef _EZ80
240240 const uint32_t __precision) {
241+ #else // _EZ80
242+ const unsigned __precision) {
243+ #endif // _EZ80
241244 char * const _Original_first = _First;
242245
243246 const uint64_t __bits = __double_to_bits (__d);
@@ -317,10 +320,18 @@ void __append_nine_digits(uint32_t __digits, char* const __result) {
317320 }
318321 if (__e2 < 0 ) {
319322 const int32_t __idx = -__e2 / 16 ;
323+ #ifndef _EZ80
320324 const uint32_t __blocks = __precision / 9 + 1 ;
325+ #else // _EZ80
326+ const unsigned __blocks = __precision / 9 + 1 ;
327+ #endif // _EZ80
321328 // 0 = don't round up; 1 = round up unconditionally; 2 = round up if odd.
322329 int __roundUp = 0 ;
330+ #ifndef _EZ80
323331 uint32_t __i = 0 ;
332+ #else // _EZ80
333+ unsigned __i = 0 ;
334+ #endif // _EZ80
324335 if (__blocks <= __MIN_BLOCK_2[__idx]) {
325336 __i = __blocks;
326337 if (_Last - _First < static_cast <ptrdiff_t >(__precision)) {
@@ -342,7 +353,11 @@ void __append_nine_digits(uint32_t __digits, char* const __result) {
342353 if (__p >= __POW10_OFFSET_2[__idx + 1 ]) {
343354 // If the remaining digits are all 0, then we might as well use memset.
344355 // No rounding required in this case.
356+ #ifndef _EZ80
345357 const uint32_t __fill = __precision - 9 * __i;
358+ #else // _EZ80
359+ const unsigned __fill = __precision - 9 * __i;
360+ #endif // _EZ80
346361 if (_Last - _First < static_cast <ptrdiff_t >(__fill)) {
347362 return { _Last, errc::value_too_large };
348363 }
@@ -431,7 +446,11 @@ void __append_nine_digits(uint32_t __digits, char* const __result) {
431446#else // _EZ80
432447[[nodiscard]] to_chars_result __d2exp_buffered_n (char * _First, char * const _Last, const long double __d,
433448#endif // _EZ80
449+ #ifndef _EZ80
434450 uint32_t __precision) {
451+ #else // _EZ80
452+ unsigned __precision) {
453+ #endif // _EZ80
435454 char * const _Original_first = _First;
436455
437456 const uint64_t __bits = __double_to_bits (__d);
@@ -473,8 +492,13 @@ void __append_nine_digits(uint32_t __digits, char* const __result) {
473492 const bool __printDecimalPoint = __precision > 0 ;
474493 ++__precision;
475494 uint32_t __digits = 0 ;
495+ #ifndef _EZ80
476496 uint32_t __printedDigits = 0 ;
477497 uint32_t __availableDigits = 0 ;
498+ #else // _EZ80
499+ unsigned __printedDigits = 0 ;
500+ unsigned __availableDigits = 0 ;
501+ #endif // _EZ80
478502 int32_t __exp = 0 ;
479503 if (__e2 >= -52 ) {
480504 const uint32_t __idx = __e2 < 0 ? 0 : __indexForExponent (static_cast <uint32_t >(__e2));
@@ -564,7 +588,11 @@ void __append_nine_digits(uint32_t __digits, char* const __result) {
564588 }
565589 }
566590
591+ #ifndef _EZ80
567592 const uint32_t __maximum = __precision - __printedDigits;
593+ #else // _EZ80
594+ const unsigned __maximum = __precision - __printedDigits;
595+ #endif // _EZ80
568596 if (__availableDigits == 0 ) {
569597 __digits = 0 ;
570598 }
0 commit comments