summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2018-06-28 12:33:03 -0700
committerGitHub <noreply@github.com>2018-06-28 12:33:03 -0700
commit338a7701b37fe133eba2f72455ba7c1790a8a1f5 (patch)
tree769b1dacc2d9d3e90abf355372aa6a34c34ea87b
parentdfe13b54286b27dd15f591455bbb86b7798285c2 (diff)
Fix up definitions of half and double in stdlib (#608)
An earlier change made sure that the `half` and `double` types properly conform to the `__BuiltinFloatingPointType` and `__BuiltinRealType` interfaces, but somehow that change modified only the *generated* source file (`core.meta.slang.h`) and not the source that fed into the generator (`core.meta.slang`). This meant that when building the compiler, we'd end up with spurious diffs because we'd run the generation logic and clobber the (correct) output file with freshly generated (wrong) code. This change adds the missing lines to the source file to fix up the issue.
-rw-r--r--source/slang/core.meta.slang2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang
index ab46e5676..bd163b165 100644
--- a/source/slang/core.meta.slang
+++ b/source/slang/core.meta.slang
@@ -66,7 +66,9 @@ for (int tt = 0; tt < kBaseTypeCount; ++tt)
switch (kBaseTypes[tt].tag)
{
+ case BaseType::Half:
case BaseType::Float:
+ case BaseType::Double:
sb << "\n , __BuiltinFloatingPointType\n";
sb << "\n , __BuiltinRealType\n";
// fall through to: