]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/inexact.qc
Make it a function
[xonotic/gmqcc.git] / tests / inexact.qc
index 873d7ccaca37e9a056b64d2887e26c9a5c73545e..11dc2c62521d0ce9e87ffb8f898f214f647a9edd 100644 (file)
@@ -1,7 +1,7 @@
-void main() {
-    const float a = 1.0 / 3.0;
-    const float b = 0.3333333333333;
+const float a = 1.0 / 3.0;
+const float b = 0.33333333333;
 
+void main() {
     if (a == b) {
         // Should trigger warning
     }