From 24ad492a98dc99abfbf7523b50bbdb13274c097e Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 17 Sep 2018 09:18:57 -0400 Subject: Hotfix/fixing warnings (#636) * * Remove dispose from IRInst * Use MemoryArena instead of MemoryPool * Make all IRInst not require Dtor - by having ref counted array store ptrs that need freeing * Increase block size - typically compilation is 2Mb of IR space(!) * Fix issues around StringRepresentation::equal because null has special meaning. * Don't bother to construct as String to compare StringRepresentation, just used UnownedStringSlice. * Added fromLiteral support to UnownedStringSlice and use instead of strlen version. * Use more conventional way to test StringRepresentation against a String. * Fix gcc/clang template problem with cast. * Fix warnings. --- source/core/hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/core/hash.h b/source/core/hash.h index 8ee5b088f..26450029d 100644 --- a/source/core/hash.h +++ b/source/core/hash.h @@ -57,7 +57,7 @@ namespace Slang template static int GetHashCode(TKey & key) { - return key.GetHashCode(); + return int(key.GetHashCode()); } }; template -- cgit v1.2.3