From 2d239f552c34090850eafdcbfbe8cb4a3aab6844 Mon Sep 17 00:00:00 2001 From: arezaii Date: Mon, 28 Nov 2022 12:33:18 -0700 Subject: [PATCH] change string comparison to type comparison Signed-off-by: arezaii --- modules/internal/ChapelBase.chpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/internal/ChapelBase.chpl b/modules/internal/ChapelBase.chpl index aa9d3905b69c..9ca4900af9f3 100644 --- a/modules/internal/ChapelBase.chpl +++ b/modules/internal/ChapelBase.chpl @@ -1444,7 +1444,7 @@ module ChapelBase { // string to a type. Otherwise, we can't resolve chpl_debug_writeln in // `range.these` { var dummyRange = 1..0; for i in dummyRange {} } - if t:string == "regex(string)" || t:string == "regex(bytes)" then + if t == regex(string) || t == regex(bytes) then return compile(str); else return str:t;