From: Richard Kreckel <kreckel@ginac.de>
Date: Sat, 19 Oct 2013 07:19:57 +0000 (+0000)
Subject: Minor fixes for recent CLang.
X-Git-Url: http://www.ginac.de/CLN/cln.git//cln.git?p=cln.git;a=commitdiff_plain;h=affe2cfa685840c8760eae7ba5291123bb4d4b1b
Minor fixes for recent CLang.
Needed for CLang 3.2.
---
diff --git a/include/cln/exception.h b/include/cln/exception.h
index d9f1a4f..37ea17b 100644
a
|
b
|
|
3 | 3 | #ifndef _CL_EXCEPTION_H |
4 | 4 | #define _CL_EXCEPTION_H |
5 | 5 | |
| 6 | #include <string> |
6 | 7 | #include <stdexcept> |
7 | 8 | |
8 | 9 | namespace cln { |
diff --git a/tests/test_I_io.cc b/tests/test_I_io.cc
index 74d2c28..9ee259d 100644
a
|
b
|
int test_I_io (int iterations) |
7 | 7 | int error = 0; |
8 | 8 | for (int i = iterations; i > 0; i--) { |
9 | 9 | cl_I a = testrandom_I(); |
10 | | int base = iterations % (36-1) + 2; |
| 10 | unsigned base = iterations % (36-1) + 2; |
11 | 11 | cl_read_flags rflags = {syntax_integer, lsyntax_standard, base}; |
12 | 12 | stringstream buf; |
13 | 13 | print_integer(buf, base, a); |