Changeset 72abc90a


Ignore:
Timestamp:
Jul 2, 2024, 2:30:54 PM (3 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
7f8c232
Parents:
64eeb06
Message:

remove unnecessary assignment when looping with a structure type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/ctrl-flow/loopctrl.cfa

    r64eeb06 r72abc90a  
    1010// Created On       : Wed Aug  8 18:32:59 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Aug 11 23:04:35 2022
    13 // Update Count     : 160
     12// Last Modified On : Thu Jun 27 11:00:09 2024
     13// Update Count     : 161
    1414//
    1515
     
    9999int ?>?( S t1, S t2 ) { return t1.i > t2.i && t1.j > t2.j; }
    100100int ?>=?( S t1, S t2 ) { return t1.i >= t2.i && t1.j >= t2.j; }
    101 S ?=?( S & t1, S t2 ) { t1.i = t2.i; t1.j = t2.j; return t1; }
    102101S ?+=?( S & t1, S t2 ) { t1.i += t2.i; t1.j += t2.j; return t1; }
    103102S ?+=?( S & t, one_t ) { t.i += 1; t.j += 1; return t; }
Note: See TracChangeset for help on using the changeset viewer.