diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-04-03 11:47:10 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-02 20:47:10 -0700 |
| commit | 7a346b2982c69ef97ebc4b308c77a1f1c88c548f (patch) | |
| tree | e58d3a68b4640138bd57e4209aee0c92d4f5fcf4 /tools/slang-reflection-test | |
| parent | 271ae7165915cf9910e2de0224159ea0fdd8ce72 (diff) | |
Squash some warnings (#2765)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/slang-reflection-test')
| -rw-r--r-- | tools/slang-reflection-test/slang-reflection-test-main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/slang-reflection-test/slang-reflection-test-main.cpp b/tools/slang-reflection-test/slang-reflection-test-main.cpp index 2aabf9ca2..415231177 100644 --- a/tools/slang-reflection-test/slang-reflection-test-main.cpp +++ b/tools/slang-reflection-test/slang-reflection-test-main.cpp @@ -138,7 +138,7 @@ static void write(PrettyWriter& writer, uint64_t val) static void write(PrettyWriter& writer, int64_t val) { adjust(writer); - Slang::StdWriters::getOut().print("%ll", (long long)val); + Slang::StdWriters::getOut().print("%lld", (long long)val); } static void write(PrettyWriter& writer, int32_t val) @@ -501,7 +501,7 @@ static void emitReflectionScalarTypeInfoJSON( write(writer, "unknown"); assert(!"unhandled case"); break; -#define CASE(TAG, ID) case slang::TypeReflection::ScalarType::TAG: write(writer, #ID); break +#define CASE(TAG, ID) case static_cast<SlangScalarType>(slang::TypeReflection::ScalarType::TAG): write(writer, #ID); break CASE(Void, void); CASE(Bool, bool); |
