From 8ba303f0f43c24f498d97d22adfed8f9300da536 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 2 Nov 2019 22:18:28 +0100 Subject: [PATCH] nil:: fixed zgmod --- nonisotropic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonisotropic.cpp b/nonisotropic.cpp index 859ad836..56f10946 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -776,7 +776,7 @@ EX namespace nilv { { point31(0,0,0.5), point31(-0.5,0.5,0.25), point31(-0.5,-0.5,0.75), point31(0,0,0.5), point31(-0.5,-0.5,0.75), point31(-0.5,-0.5,0.5), point31(0,0,0.5), point31(-0.5,-0.5,0.5), point31(0.5,-0.5,0.5), point31(0,0,0.5), point31(0.5,-0.5,0.5), point31(0.5,-0.5,0.25), point31(0,0,0.5), point31(0.5,-0.5,0.25), point31(0.5,0.5,0.75), point31(0,0,0.5), point31(0.5,0.5,0.75), point31(0.5,0.5,0.5), point31(0,0,0.5), point31(0.5,0.5,0.5), point31(-0.5,0.5,0.5), point31(0,0,0.5), point31(-0.5,0.5,0.5), point31(-0.5,0.5,0.25), }, }}; - EX int zgmod(int a, int b) { return b ? a%b : a; } + EX int zgmod(int a, int b) { return b ? gmod(a, b) : a; } array nilperiod, nilperiod_edit;