Changeset 292642a


Ignore:
Timestamp:
May 19, 2019, 6:29:02 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
0588d8c, 19e567d, 933f32f, d148778, e63326b
Parents:
b2ac656
Message:

change for loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/sum.cfa

    rb2ac656 r292642a  
    1111// Created On       : Wed May 27 17:56:53 2015
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Wed Feb 20 08:32:46 2019
    14 // Update Count     : 329
     13// Last Modified On : Sun May 19 11:21:02 2019
     14// Update Count     : 330
    1515//
    1616
     
    2929T sum( size_t size, T a[] ) {
    3030        T total = 0;                                                                            // initialize by 0 constructor
    31         for ( size_t i = 0; i < size; i += 1 )
     31        for ( i; size )
    3232                total += a[i];                                                                  // select appropriate +
    3333        return total;
Note: See TracChangeset for help on using the changeset viewer.