Variable below zero but if statement doesn't grab?

SimonN via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Dec 27 08:39:18 PST 2015


On Sunday, 27 December 2015 at 16:01:37 UTC, TheDGuy wrote:
> Sry:
> 			if((x1 < 0) & (x2 >= 0)){

This looks like a bug, with & instead of &&.

-- Simon


More information about the Digitalmars-d-learn mailing list