Ticket #40848: patch-clang.diff

File patch-clang.diff, 1.0 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)
  • include/cln/exception.h

    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  
    33#ifndef _CL_EXCEPTION_H
    44#define _CL_EXCEPTION_H
    55
     6#include <string>
    67#include <stdexcept>
    78
    89namespace cln {
  • tests/test_I_io.cc

    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) 
    77        int error = 0;
    88        for (int i = iterations; i > 0; i--) {
    99                cl_I a = testrandom_I();
    10                 int base = iterations % (36-1) + 2;
     10                unsigned base = iterations % (36-1) + 2;
    1111                cl_read_flags rflags = {syntax_integer, lsyntax_standard, base};
    1212                stringstream buf;
    1313                print_integer(buf, base, a);