Skip to content

Commit e8437a7

Browse files
committed
use std::size_t
1 parent 1a8a92e commit e8437a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/fixedbv.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ Function: fixedbvt::round
136136

137137
void fixedbvt::round(const fixedbv_spect &dest_spec)
138138
{
139-
unsigned old_fraction_bits=spec.width-spec.integer_bits;
140-
unsigned new_fraction_bits=dest_spec.width-dest_spec.integer_bits;
139+
std::size_t old_fraction_bits=spec.width-spec.integer_bits;
140+
std::size_t new_fraction_bits=dest_spec.width-dest_spec.integer_bits;
141141

142142
mp_integer result;
143143

@@ -259,7 +259,7 @@ std::string fixedbvt::format(
259259
const format_spect &format_spec) const
260260
{
261261
std::string dest;
262-
unsigned fraction_bits=spec.get_fraction_bits();
262+
std::size_t fraction_bits=spec.get_fraction_bits();
263263

264264
mp_integer int_value=v;
265265
mp_integer factor=power(2, fraction_bits);

0 commit comments

Comments
 (0)