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

NOR and NAND nodes work incorretly for three and more inputs #1911

Open
nkrkv opened this issue Nov 28, 2019 · 0 comments
Open

NOR and NAND nodes work incorretly for three and more inputs #1911

nkrkv opened this issue Nov 28, 2019 · 0 comments
Labels

Comments

@nkrkv
Copy link
Member

@nkrkv nkrkv commented Nov 28, 2019

https://forum.xod.io/t/nor-node-bug-found/2951

Steps to reproduce

  • Put a three-argument nor node and put False on all inputs
  • Put a three-argument nand node and put True on all inputs

Expected behavior

  • nor outputs True
  • nand outputs False

Actual behavior

  • nor outputs False
  • nand outputs True

How to fix

The negation should take place at the last stage. But it requires #1144 to be done.

As a temporary solution, perhaps, we could remove variadicity from nor and nand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.