[Gmp-commit] /home/hgfiles/gmp: More C++ edits.
mercurial at gmplib.org
mercurial at gmplib.org
Sun Nov 14 15:38:02 CET 2010
details: /home/hgfiles/gmp/rev/0e1e5b8d4178
changeset: 13691:0e1e5b8d4178
user: Torbjorn Granlund <tege at gmplib.org>
date: Sun Nov 14 15:37:59 2010 +0100
description:
More C++ edits.
diffstat:
ChangeLog | 7 ++++++-
mpn/generic/toom62_mul.c | 2 +-
tests/misc/t-printf.c | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r 76a82758f509 -r 0e1e5b8d4178 ChangeLog
--- a/ChangeLog Sat Nov 13 18:27:08 2010 +0100
+++ b/ChangeLog Sun Nov 14 15:37:59 2010 +0100
@@ -1,3 +1,8 @@
+2010-11-14 Torbjorn Granlund <tege at gmplib.org>
+
+ * tests/misc/t-printf.c: Add explicit casts for type conversions.
+ * mpn/generic/toom62_mul.c: Likewise.
+
2010-11-13 Torbjorn Granlund <tege at gmplib.org>
* mpn/generic/get_d.c: Misc cleanup. Fail with a syntax error for
@@ -9,7 +14,7 @@
* acinclude.m4 (GMP_ASM_RODATA): Make test code snippet C++ compatible.
(GMP_C_DOUBLE_FORMAT): Likewise.
(GMP_FUNC_VSNPRINTF): Likewise.
-
+
* config.guess (x86): Make test C snippet C++ compatible.
2010-11-12 Torbjorn Granlund <tege at gmplib.org>
diff -r 76a82758f509 -r 0e1e5b8d4178 mpn/generic/toom62_mul.c
--- a/mpn/generic/toom62_mul.c Sat Nov 13 18:27:08 2010 +0100
+++ b/mpn/generic/toom62_mul.c Sun Nov 14 15:37:59 2010 +0100
@@ -144,7 +144,7 @@
else
{
cy = mpn_add_n_sub_n (bs1, bsm1, b0, b1, n);
- bflags = 0;
+ bflags = (enum toom7_flags) 0;
}
bs1[n] = cy >> 1;
#else
diff -r 76a82758f509 -r 0e1e5b8d4178 tests/misc/t-printf.c
--- a/tests/misc/t-printf.c Sat Nov 13 18:27:08 2010 +0100
+++ b/tests/misc/t-printf.c Sun Nov 14 15:37:59 2010 +0100
@@ -296,7 +296,7 @@
obstack_init (&ob);
got_len = gmp_obstack_vprintf (&ob, fmt, ap);
- got = obstack_base (&ob);
+ got = (char *) obstack_base (&ob);
ob_len = obstack_object_size (&ob);
if (got_len != want_len
More information about the gmp-commit
mailing list