File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ struct BigInt {
373
373
static_assert (
374
374
(WORD_SIZE % BigIntOther::WORD_SIZE) == 0 &&
375
375
" Word types must be multiples of each other for correct conversion." );
376
- if (OtherBits >= Bits) { // truncate
376
+ if constexpr (OtherBits >= Bits) { // truncate
377
377
// for each big word
378
378
for (size_t i = 0 ; i < WORD_COUNT; ++i) {
379
379
WordType cur_word = 0 ;
@@ -412,7 +412,7 @@ struct BigInt {
412
412
extend ((i / WORD_SIZE_RATIO) + 1 , should_sign_extend);
413
413
}
414
414
} else if constexpr (BigIntOther::WORD_SIZE == WORD_SIZE) {
415
- if (OtherBits >= Bits) { // truncate
415
+ if constexpr (OtherBits >= Bits) { // truncate
416
416
for (size_t i = 0 ; i < WORD_COUNT; ++i)
417
417
val[i] = other[i];
418
418
} else { // zero or sign extend
@@ -427,7 +427,7 @@ struct BigInt {
427
427
static_assert (
428
428
(BigIntOther::WORD_SIZE % WORD_SIZE) == 0 &&
429
429
" Word types must be multiples of each other for correct conversion." );
430
- if (OtherBits >= Bits) { // truncate
430
+ if constexpr (OtherBits >= Bits) { // truncate
431
431
// for each small word
432
432
for (size_t i = 0 ; i < WORD_COUNT; ++i) {
433
433
// split each big word into WORD_SIZE_RATIO small words
You can’t perform that action at this time.
0 commit comments