[Gmp-commit] /var/hg/gmp: Add cast for malloc result.
mercurial at gmplib.org
mercurial at gmplib.org
Wed Jun 18 17:18:08 CEST 2025
details: /var/hg/gmp/rev/3ba8c772699e
changeset: 18485:3ba8c772699e
user: Torbjorn Granlund <tg at gmplib.org>
date: Wed Jun 18 17:17:26 2025 +0200
description:
Add cast for malloc result.
diffstat:
mini-gmp/tests/t-gcd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d66d66d82dbb -r 3ba8c772699e mini-gmp/tests/t-gcd.c
--- a/mini-gmp/tests/t-gcd.c Tue Apr 01 15:25:46 2025 +0200
+++ b/mini-gmp/tests/t-gcd.c Wed Jun 18 17:17:26 2025 +0200
@@ -156,7 +156,7 @@
bp = sp; bn = sn;
}
- tp = malloc ((an + bn) * sizeof (mp_limb_t));
+ tp = (mp_ptr) malloc ((an + bn) * sizeof (mp_limb_t));
if (!tp)
abort ();
More information about the gmp-commit
mailing list