summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-04-03 11:47:10 +0800
committerGitHub <noreply@github.com>2023-04-02 20:47:10 -0700
commit7a346b2982c69ef97ebc4b308c77a1f1c88c548f (patch)
treee58d3a68b4640138bd57e4209aee0c92d4f5fcf4 /source
parent271ae7165915cf9910e2de0224159ea0fdd8ce72 (diff)
Squash some warnings (#2765)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source')
-rw-r--r--source/compiler-core/slang-json-source-map-util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/compiler-core/slang-json-source-map-util.cpp b/source/compiler-core/slang-json-source-map-util.cpp
index 5782b0e89..a5a454bd5 100644
--- a/source/compiler-core/slang-json-source-map-util.cpp
+++ b/source/compiler-core/slang-json-source-map-util.cpp
@@ -75,7 +75,7 @@ static const StructRttiInfo _makeJSONSourceMap_Rtti()
/* static */const StructRttiInfo JSONSourceMap::g_rttiInfo = _makeJSONSourceMap_Rtti();
// Encode a 6 bit value to VLQ encoding
-static const char g_vlqEncodeTable[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+static const unsigned char g_vlqEncodeTable[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
struct VlqDecodeTable
{
@@ -88,7 +88,7 @@ struct VlqDecodeTable
}
}
/// Returns a *negative* value if invalid
- SLANG_FORCE_INLINE int8_t operator[](char c) const { return (c & ~char(0x7f)) ? -1 : map[c]; }
+ SLANG_FORCE_INLINE int8_t operator[](unsigned char c) const { return (c & ~char(0x7f)) ? -1 : map[c]; }
int8_t map[128];
};