diff options
| author | Yong He <yonghe@outlook.com> | 2024-04-12 06:59:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-12 06:59:21 -0700 |
| commit | 4df7887f9e158ba0d5e3224c369459521a136bce (patch) | |
| tree | 5969d514949762705a85e387bb644c100cc342fe /tools | |
| parent | cc3e97985d879a36ed8d797d8a1cc3bf6010d9fb (diff) | |
Add missing astBuilder setting in `ComponentType::tryFoldIntVal`. (#3934)
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/gfx-unit-test/link-time-constant.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/link-time-constant.slang | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx-unit-test/link-time-constant.cpp b/tools/gfx-unit-test/link-time-constant.cpp index 58b39a204..a80a23c0c 100644 --- a/tools/gfx-unit-test/link-time-constant.cpp +++ b/tools/gfx-unit-test/link-time-constant.cpp @@ -79,7 +79,7 @@ namespace gfx_test R"( export static const bool turnOnFeature = true; export static const float constValue = 2.0; - export static const int numthread = 2; + export static const uint numthread = 2; export static const int arraySize = 4; )")); diff --git a/tools/gfx-unit-test/link-time-constant.slang b/tools/gfx-unit-test/link-time-constant.slang index b23f84ce8..64a4f0bef 100644 --- a/tools/gfx-unit-test/link-time-constant.slang +++ b/tools/gfx-unit-test/link-time-constant.slang @@ -1,6 +1,6 @@ extern static const bool turnOnFeature; extern static const float constValue; -extern static const int numthread = -1; +extern static const uint numthread = 0; extern static const int arraySize = -1; // Main entry-point. Write some value into buffer depending on link |
