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

base/bool.jl: -0.0 + false === -0.0. #5492

Merged
merged 1 commit into from
Jan 28, 2014
Merged

Conversation

StefanKarpinski
Copy link
Member

A less disruptive but also less general alternative to #5491.

@JeffBezanson
Copy link
Member

Let's merge this.

@StefanKarpinski
Copy link
Member Author

What about this one: #5491?

@JeffBezanson
Copy link
Member

I like the less-disruptive version, since floating-point -0.0 is the only case I can think of that needs this behavior. Also +() = false is asking for a type instability if it's used to initialize a counter; I figured 0 was a better guess at what might be needed.

@StefanKarpinski
Copy link
Member Author

Ok, fair enough.

StefanKarpinski added a commit that referenced this pull request Jan 28, 2014
base/bool.jl: `-0.0 + false === -0.0`.
@StefanKarpinski StefanKarpinski merged commit 6bebb9b into master Jan 28, 2014
@StefanKarpinski StefanKarpinski deleted the sk/complex-fix-2 branch January 28, 2014 23:09
tkelman added a commit that referenced this pull request Feb 26, 2016
tkelman added a commit that referenced this pull request Mar 9, 2016
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

Successfully merging this pull request may close these issues.

2 participants