@@ -197,7 +197,7 @@ class uint256_t {
197
197
* @returns addition of this and p, returning uint256_t integer
198
198
*/
199
199
inline uint256_t operator +(const uint256_t &p) {
200
- bool app = s + p.s < s;
200
+ uint32_t app = ( s + p.s < s) ;
201
201
return {f + app + p.f , p.s + s};
202
202
}
203
203
@@ -210,7 +210,7 @@ class uint256_t {
210
210
template <typename T, typename = typename std::enable_if<
211
211
std::is_integral<T>::value, T>::type>
212
212
inline uint256_t &operator +=(const T &p) {
213
- bool app = p + s < s;
213
+ uint32_t app = ( p + s < s) ;
214
214
this ->f += app;
215
215
this ->s += p;
216
216
return *this ;
@@ -222,7 +222,7 @@ class uint256_t {
222
222
* @returns addition of this and p, returning this
223
223
*/
224
224
inline uint256_t &operator +=(const uint256_t &p) {
225
- bool _app = (p.s + s < s);
225
+ uint32_t _app = (p.s + s < s);
226
226
f += _app + p.f ;
227
227
s += p.s ;
228
228
return *this ;
@@ -255,7 +255,7 @@ class uint256_t {
255
255
template <typename T, typename = typename std::enable_if<
256
256
std::is_integral<T>::value, T>::type>
257
257
inline uint256_t operator -(const T &p) {
258
- bool app = p > s;
258
+ uint32_t app = ( p > s) ;
259
259
return uint256_t (f - app, s - p);
260
260
}
261
261
@@ -265,7 +265,7 @@ class uint256_t {
265
265
* @returns subtraction of this and p, returning uint256_t integer
266
266
*/
267
267
inline uint256_t operator -(const uint256_t &p) {
268
- bool app = p.s > s;
268
+ uint32_t app = p.s > s;
269
269
return {f - p.f - app, s - p.s };
270
270
}
271
271
@@ -302,7 +302,7 @@ class uint256_t {
302
302
template <typename T, typename = typename std::enable_if<
303
303
std::is_integral<T>::value, T>::type>
304
304
inline uint256_t operator -=(const T p) {
305
- bool app = p > s;
305
+ uint32_t app = ( p > s) ;
306
306
f -= app;
307
307
s -= p;
308
308
return *this ;
@@ -314,7 +314,7 @@ class uint256_t {
314
314
* @returns subtraction of this and p, returning this
315
315
*/
316
316
inline uint256_t &operator -=(const uint256_t &p) {
317
- bool app = p.s > s;
317
+ uint32_t app = p.s > s;
318
318
f = f - app - p.f ;
319
319
s -= p.s ;
320
320
return *this ;
0 commit comments