File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ namespace fbcpp::impl
284284 auto unsignedValue = isMinLimit ? static_cast <UnsignedType>(-(from.value + 1 )) + 1
285285 : static_cast <UnsignedType>(isNegative ? -from.value : from.value );
286286
287- unsigned digitCount = 0u ;
287+ int digitCount = 0 ;
288288
289289 do
290290 {
@@ -299,10 +299,10 @@ namespace fbcpp::impl
299299
300300 if (from.scale >= 0 )
301301 {
302- for (unsigned i = digitCount; i > 0u ; --i)
303- result += buffer[i - 1u ];
302+ for (int i = digitCount - 1 ; i >= 0 ; --i)
303+ result += buffer[i];
304304
305- result.append (from.scale , ' 0' );
305+ result.append (static_cast <std::string::size_type>( from.scale ) , ' 0' );
306306 }
307307 else
308308 {
@@ -312,7 +312,7 @@ namespace fbcpp::impl
312312 {
313313 result += " 0." ;
314314 const int leadingZeros = decimalPlaces - digitCount;
315- result.append (leadingZeros, ' 0' );
315+ result.append (static_cast <std::string::size_type>( leadingZeros) , ' 0' );
316316
317317 for (int i = digitCount - 1 ; i >= 0 ; --i)
318318 result += buffer[i];
You can’t perform that action at this time.
0 commit comments