From: Joey Schulze Date: Tue, 16 Aug 2005 08:02:34 +0000 (+0000) Subject: Correction by Jens Rohler X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fdtaus;a=commitdiff_plain;h=30b389ee1d5fa0a28580b746d1270b06c7657379;hp=033ba41de336b8bf79ef53032574cc212746e950;ds=sidebyside Correction by Jens Rohler Bigint overflows weren't detected properly --- diff --git a/bigint.c b/bigint.c index 38511aa..1b6fa91 100644 --- a/bigint.c +++ b/bigint.c @@ -1,6 +1,6 @@ /* bigint.c - Manage big positive integer numbers - Copyright (c) 1996,2001 Martin Schulze + Copyright (c) 1996,2001,5 Martin Schulze This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -34,7 +34,7 @@ bigint bigint_add(bigint a, bigint b) tmp = a.val[i] + b.val[i]; if (tmp >= BIGINT_MAX) { c.val[i] = tmp - BIGINT_MAX; - if (i