From d01fc27dd524b0e23a036478825880822cd92205 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 21 May 2023 22:20:38 +0900 Subject: [PATCH] [gatest] Remove the workarounds for array lifetime Now that arrays work well enough for this case, no point in having the workarounds (other than they're actually faster, but I'd like to optimize *that* sometime). --- ruamoko/gatest/main.r | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ruamoko/gatest/main.r b/ruamoko/gatest/main.r index 43be58742..11ddeb2e7 100644 --- a/ruamoko/gatest/main.r +++ b/ruamoko/gatest/main.r @@ -81,11 +81,11 @@ main () names[0], names[3], names[0], names[3], prod); Algebra *alg = [Algebra R:3, 0, 1]; - double vals1[32] = {1, 0, 0, 8}; - static double vals2[32] = {0, 1, 0, 8};//FIXME qfcc bug (static) - static double origin_vals[32] = {0, 0, 0, 1}; - MultiVector *plane1 = [alg group:0 values:vals1]; - MultiVector *plane2 = [alg group:0 values:vals2]; + double plane1_vals[4] = {1, 0, 0, 8}; + double plane2_vals[4] = {0, 1, 0, 8}; + double origin_vals[4] = {0, 0, 0, 1}; + MultiVector *plane1 = [alg group:0 values:plane1_vals]; + MultiVector *plane2 = [alg group:0 values:plane2_vals]; MultiVector *origin = [alg group:3 values:origin_vals]; MultiVector *line = [plane1 wedge:plane2];