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

Multiplication by zero crashes the compiler #28

Closed
PeterWAWood opened this issue May 5, 2011 · 1 comment
Closed

Multiplication by zero crashes the compiler #28

PeterWAWood opened this issue May 5, 2011 · 1 comment
Labels
status.tested The change in code has been manually tested and verified to fix the issue. type.bug Ticket describes an abnormal behavior, not conforming to the specs or expectation.

Comments

@PeterWAWood
Copy link
Contributor

I've found that multiplying by zero crashes the compiler. Code:

Red/System []
i: 1 * 0

Compiler output:

do/args %rsc.r "%/c/code/red-system/test.reds"
Script: "Red/System compiler wrapper" (none)

-= Red/System Compiler =-
Compiling /c/code/red-system/test.reds ...
Script: "Red/System IA32 code emitter" (none)
** Math Error: Positive number required
** Where: power-of-2?
** Near: to integer! log-2 n
dockimbel added a commit that referenced this issue May 5, 2011
@dockimbel
Copy link
Member

Tested OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status.tested The change in code has been manually tested and verified to fix the issue. type.bug Ticket describes an abnormal behavior, not conforming to the specs or expectation.
Projects
None yet
Development

No branches or pull requests

2 participants