weimingtom / minijoe

Automatically exported from code.google.com/p/minijoe
1 stars 0 forks source link

Character literals give incorrect comparisons #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. eg. Given the following two statements both will print but only the
second should print. 
    if ('a' >= 'b') { print(">="); }
    if ('a' <= 'b') { print("<="); }
2.  < and > comparisons are also incorrect.
3.

What is the expected output? What do you see instead?
I expect 'a' to be <= to 'b' and not >=.

What version of the product are you using? On what operating system?
minijoe-1.0.zip Windows XP.

Please provide any additional information below.

Original issue reported on code.google.com by william....@gmail.com on 11 Feb 2009 at 6:20

GoogleCodeExporter commented 8 years ago
fixed in SVN by fixing implementation of LT and GT operators

Original comment by stefan.haustein on 16 Mar 2009 at 12:02