From 05e5fbeb4ef534522dae7607d891562f32a828da Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sat, 29 Apr 2023 20:18:43 -0400 Subject: [PATCH] fix: typo in region_macro --- src/common/func.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/func.c b/src/common/func.c index ff17f26..11653f0 100644 --- a/src/common/func.c +++ b/src/common/func.c @@ -1220,7 +1220,7 @@ static Token region_macro(RegFuncInit init, RegFuncUpdt updt, RegFuncFinl finl, // Evaluate over all cells in block defined by locations l1 and l2 int x1 = l1[X], x2 = l2[X]; posorder(&x1, &x2); int y1 = l1[Y], y2 = l2[Y]; posorder(&y1, &y2); - int z1 = l1[Y], z2 = l2[Z]; posorder(&z1, &z2); + int z1 = l1[Z], z2 = l2[Z]; posorder(&z1, &z2); Location l; l[X] = x1; l[Y] = y1; l[Z] = z1; Token t; if (argc == 3) {