summaryrefslogtreecommitdiffstatshomepage
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/068_comptime3.patch8
1 files changed, 8 insertions, 0 deletions
diff --git a/patches/patches/068_comptime3.patch b/patches/patches/068_comptime3.patch
new file mode 100644
index 0000000..985f0e6
--- /dev/null
+++ b/patches/patches/068_comptime3.patch
@@ -0,0 +1,8 @@
+46c46
+< if (my_scale == 0) @compileError("Scale 1:0 is not valid!");
+---
+> if (my_scale == 0) my_scale = 1; //@compileError("Scale 1:0 is not valid!");
+72c72
+< var scale: u32 = undefined;
+---
+> comptime var scale: u32 = undefined;