From affe2cfa685840c8760eae7ba5291123bb4d4b1b Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sat, 19 Oct 2013 07:19:57 +0000 Subject: [PATCH] Minor fixes for recent CLang. Needed for CLang 3.2. --- include/cln/exception.h | 1 + tests/test_I_io.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/cln/exception.h b/include/cln/exception.h index d9f1a4f..37ea17b 100644 --- a/include/cln/exception.h +++ b/include/cln/exception.h @@ -3,6 +3,7 @@ #ifndef _CL_EXCEPTION_H #define _CL_EXCEPTION_H +#include #include namespace cln { diff --git a/tests/test_I_io.cc b/tests/test_I_io.cc index 74d2c28..9ee259d 100644 --- a/tests/test_I_io.cc +++ b/tests/test_I_io.cc @@ -7,7 +7,7 @@ int test_I_io (int iterations) int error = 0; for (int i = iterations; i > 0; i--) { cl_I a = testrandom_I(); - int base = iterations % (36-1) + 2; + unsigned base = iterations % (36-1) + 2; cl_read_flags rflags = {syntax_integer, lsyntax_standard, base}; stringstream buf; print_integer(buf, base, a);