From 170ad7ba77b3d2f165188c9f637bb183cb68715b Mon Sep 17 00:00:00 2001 From: Mike Popoloski Date: Sat, 21 Dec 2024 21:48:49 -0500 Subject: [PATCH] More Windows builds fixes --- source/ast/ElabVisitors.h | 1 + source/ast/Lookup.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/ast/ElabVisitors.h b/source/ast/ElabVisitors.h index 8776eb50d..ec10a5ee6 100644 --- a/source/ast/ElabVisitors.h +++ b/source/ast/ElabVisitors.h @@ -19,6 +19,7 @@ class InstanceCacheKey { InstanceCacheKey(const InstanceSymbol& symbol); bool operator==(const InstanceCacheKey& other) const; + bool operator!=(const InstanceCacheKey& other) const { return !(*this == other); } size_t hash() const { return savedHash; } diff --git a/source/ast/Lookup.cpp b/source/ast/Lookup.cpp index 59fb0f364..ca09bac24 100644 --- a/source/ast/Lookup.cpp +++ b/source/ast/Lookup.cpp @@ -548,7 +548,7 @@ bool lookupUpward(std::span nameParts, const NameComponents& return lookupDownward(nameParts, name, context, flags, result); }; - size_t upwardCount = 0; + uint32_t upwardCount = 0; const Scope* scope = context.scope; do { // Search for a scope or instance target within our current scope.