Changeset 93cdd5c for src/tests


Ignore:
Timestamp:
Jan 2, 2018, 8:34:33 AM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
490d9972, f3458a8
Parents:
853451b
Message:

add lower/upper bound bsearch, and update bsearch and its test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/searchsort.c

    r853451b r93cdd5c  
    1010// Created On       : Thu Feb  4 18:17:50 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Dec 28 18:48:10 2017
    13 // Update Count     : 99
     12// Last Modified On : Tue Jan  2 08:01:17 2018
     13// Update Count     : 100
    1414//
    1515
     
    128128        sout | endl | endl;
    129129        {
    130                 unsigned int getKey( S & s ) { return s.j; }
     130                unsigned int getKey( const S & s ) { return s.j; }
    131131                for ( unsigned int i = 0; i < size; i += 1 ) {
    132132                        sout | sarr[i] | ", ";
Note: See TracChangeset for help on using the changeset viewer.