Changeset 3648d98 for src/AST


Ignore:
Timestamp:
May 15, 2019, 4:10:17 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
89c2f7c9
Parents:
69bafd2
Message:

Clean up warnings/errors from ast::Type merge

Location:
src/AST
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Node.hpp

    r69bafd2 r3648d98  
    135135        const node_t & operator* () const { return *node; }
    136136        explicit operator bool() const { return node; }
    137         operator const node_t * const() const { return node; }
     137        operator const node_t * () const { return node; }
    138138
    139139        template<typename o_node_t>
  • src/AST/Type.hpp

    r69bafd2 r3648d98  
    2323
    2424#include "CVQualifiers.hpp"
     25#include "Decl.hpp"
    2526#include "Fwd.hpp"
    2627#include "Node.hpp"          // for Node, ptr
     
    141142
    142143        /// Check if this type represents an integer type
    143         bool isInteger() const { return kind <= MAX_INTEGER_TYPE; }
     144        bool isInteger() const { return (unsigned)kind <= (unsigned)MAX_INTEGER_TYPE; }
    144145
    145146        const Type * accept( Visitor & v ) const override { return v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.