davedelong / DDMathParser

String → Number
MIT License
854 stars 153 forks source link

-2++3 gives -5 #145

Closed horaceho closed 6 years ago

horaceho commented 6 years ago

-2+3 gives -1 -2++3 gives -5

Is this a bug?

davedelong commented 6 years ago

sure looks like it

davedelong commented 6 years ago

Yep, this one is really subtle in what's going on. I think I've narrowed it down though.

davedelong commented 6 years ago

Fixed on the swift-4 branch

davedelong commented 6 years ago

This one was devious. Thank you for finding and reporting it!