Changeset 994ec2c


Ignore:
Timestamp:
Jul 20, 2015, 2:17:46 PM (9 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:
51b986f, 893256d
Parents:
1db21619
Message:

fix warning in logical expression

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/MLEMutator.cc

    r1db21619 r994ec2c  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Sat Jun 27 10:56:14 2015
    13 // Update Count     : 174
    14 //
     12// Last Modified On : Mon Jul 20 13:58:35 2015
     13// Update Count     : 176
     14//
     15
     16// NOTE: There are two known subtle differences from the code that uC++
     17// generates for the same input
     18// -CFA puts the break label inside at the end of a switch, uC++ puts it after
     19// -CFA puts the break label after a block, uC++ puts it inside at the end
     20// we don't yet know if these differences are important, but if they are then
     21// the fix would go in this file, since this is where these labels are generated.
    1522
    1623#include <cassert>
  • src/SymTab/TypeEquality.cc

    r1db21619 r994ec2c  
    1010// Created On       : Tue Jul 07 16:28:29 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Thu Jul 09 11:18:46 2015
    13 // Update Count     : 36
     12// Last Modified On : Mon Jul 20 14:16:11 2015
     13// Update Count     : 37
    1414//
    1515
     
    9191                        // and must both have a dimension expression or not have a dimension
    9292                        result = result && arrayType->get_isVarLen() == at->get_isVarLen()
    93                                 && (arrayType->get_dimension() != 0 && at->get_dimension() != 0
    94                                         || arrayType->get_dimension() == 0 && at->get_dimension() == 0);
     93                                && ((arrayType->get_dimension() != 0 && at->get_dimension() != 0)
     94                                        || (arrayType->get_dimension() == 0 && at->get_dimension() == 0));
    9595
    9696                        if ( vlaErr ) {
Note: See TracChangeset for help on using the changeset viewer.