Skip to content

Commit 5963568

Browse files
authored
Use BASEXPWR instead of passing BASEX into log2 (#1940)
1 parent 0990046 commit 5963568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CalcManager/Ratpack/support.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void ChangeConstants(uint32_t radix, int32_t precision)
136136
// in the internal BASEX radix, this is important for length calculations
137137
// in translating from radix to BASEX and back.
138138

139-
g_ratio = static_cast<int32_t>(ceil(log2(BASEX) / log2(radix))) - 1;
139+
g_ratio = static_cast<int32_t>(ceil(BASEXPWR / log2(radix))) - 1;
140140

141141
destroyrat(rat_nRadix);
142142
rat_nRadix = i32torat(radix);

0 commit comments

Comments
 (0)