Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZIGNOR implementation probably has a bug #56

Open
nilern opened this issue Feb 13, 2022 · 0 comments
Open

ZIGNOR implementation probably has a bug #56

nilern opened this issue Feb 13, 2022 · 0 comments

Comments

@nilern
Copy link

nilern commented Feb 13, 2022

This code has no effect because for is lazy and its result is not being used here. Without digging into the math I can't tell whether it is a bug.

If it indeed is a bug I would suggest replacing the for with

(dotimes [i c]
  (let [j (int i)]
    (aset s-adzigr j (/ (aget s-adzigx (inc j)) (aget s-adzigx j)))))

(Incidentally, the Integer type hint also has no effect so I removed that.)

If this is not a bug the for can just be removed as dead code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant