Changeset 7bc84b8


Ignore:
Timestamp:
Nov 21, 2022, 9:04:47 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
d41735a
Parents:
857081e
Message:

remove unsigned cast for prng calls

Location:
tests
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrent/barrier/generation.cfa

    r857081e r7bc84b8  
    3737                for(c; 'A' ~= 'Z') {
    3838                        // Yield for chaos
    39                         yield( (unsigned)prng(this, 10) );
     39                        yield( prng(this, 10) );
    4040
    4141                        // Print the generation, no newline because
     
    4343
    4444                        // Yield again for more chaos
    45                         yield( (unsigned)prng(this, 10) );
     45                        yield( prng(this, 10) );
    4646
    4747                        // Block on the barrier
  • tests/concurrent/barrier/order.cfa

    r857081e r7bc84b8  
    3737        for(l; NUM_LAPS) {
    3838                // Yield for chaos
    39                 yield( (unsigned)prng(this, 10) );
     39                yield( prng(this, 10) );
    4040
    4141                // Block and what order we arrived
  • tests/concurrent/once.cfa

    r857081e r7bc84b8  
    3030
    3131                // sometime yields
    32                 yield( (unsigned)prng(this, 3) );
     32                yield( prng(this, 3) );
    3333        }
    3434}
  • tests/io/away_fair.cfa

    r857081e r7bc84b8  
    6767                #endif
    6868
    69                 yield( (unsigned)prng( this, 15 ) );
     69                yield( prng( this, 15 ) );
    7070
    7171                #if CFA_HAVE_LINUX_IO_URING_H
  • tests/io/comp_basic.cfa

    r857081e r7bc84b8  
    5858                block( globals.bar );
    5959
    60                 yield( (unsigned)prng( this, 15 ) );
     60                yield( prng( this, 15 ) );
    6161
    6262                unsigned i = __atomic_add_fetch( &counter, 1, __ATOMIC_SEQ_CST );
  • tests/io/comp_fair.cfa

    r857081e r7bc84b8  
    7878                block( globals.bar );
    7979
    80                 yield( (unsigned)prng( this, 15 ) );
     80                yield( prng( this, 15 ) );
    8181
    8282                unsigned i = __atomic_add_fetch( &counter, 1, __ATOMIC_SEQ_CST );
Note: See TracChangeset for help on using the changeset viewer.