Browse Source

Minor fixes for recent CLang.

Needed for CLang 3.2.
master
Richard Kreckel 11 years ago
parent
commit
affe2cfa68
  1. 1
      include/cln/exception.h
  2. 2
      tests/test_I_io.cc

1
include/cln/exception.h

@ -3,6 +3,7 @@
#ifndef _CL_EXCEPTION_H #ifndef _CL_EXCEPTION_H
#define _CL_EXCEPTION_H #define _CL_EXCEPTION_H
#include <string>
#include <stdexcept> #include <stdexcept>
namespace cln { namespace cln {

2
tests/test_I_io.cc

@ -7,7 +7,7 @@ int test_I_io (int iterations)
int error = 0; int error = 0;
for (int i = iterations; i > 0; i--) { for (int i = iterations; i > 0; i--) {
cl_I a = testrandom_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}; cl_read_flags rflags = {syntax_integer, lsyntax_standard, base};
stringstream buf; stringstream buf;
print_integer(buf, base, a); print_integer(buf, base, a);

Loading…
Cancel
Save