Changeset b4cd03b7 for src/libcfa


Ignore:
Timestamp:
Feb 5, 2016, 12:27:21 PM (10 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
4789f44
Parents:
5721a6d
Message:

fix many warnings from gcc by adding appropriate casts to adapter parameters

Location:
src/libcfa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/algorithm

    r5721a6d rb4cd03b7  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // alorgithm -- 
     7// alorgithm --
    88//
    99// Author           : Peter A. Buhr
     
    1616//---------------------------------------
    1717
    18 forall( type T | { int ?<?( T, T ); } )
     18forall( type T | { int ?<?( const T, const T ); } )
    1919T min( const T t1, const T t2 );
    2020
    21 forall( type T | { int ?>?( T, T ); } )
     21forall( type T | { int ?>?( const T, const T ); } )
    2222T max( const T t1, const T t2 );
    2323
  • src/libcfa/algorithm.c

    r5721a6d rb4cd03b7  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // algorithm.c -- 
     7// algorithm.c --
    88//
    99// Author           : Peter A. Buhr
    1010// Created On       : Thu Jan 28 17:10:29 2016
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Feb  1 13:42:05 2016
    13 // Update Count     : 52
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Thu Feb 04 17:19:12 2016
     13// Update Count     : 54
    1414//
    1515
    1616#include "algorithm"
    1717
    18 forall( type T | { int ?<?( T, T ); } )
     18forall( type T | { int ?<?( const T, const T ); } )
    1919T min( const T t1, const T t2 ) {
    2020        return t1 < t2 ? t1 : t2;
    2121} // min
    2222
    23 forall( type T | { int ?>?( T, T ); } )
     23forall( type T | { int ?>?( const T, const T ); } )
    2424T max( const T t1, const T t2 ) {
    2525        return t1 > t2 ? t1 : t2;
Note: See TracChangeset for help on using the changeset viewer.