From 338a7701b37fe133eba2f72455ba7c1790a8a1f5 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 28 Jun 2018 12:33:03 -0700 Subject: 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. --- source/slang/core.meta.slang | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') 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: -- cgit v1.2.3