# HG changeset patch # User Kelly Wilson # Date 1236651102 21600 # Node ID 9c63438c320746b54555c7de040c290cfe9daf9b # Parent bb57632d27ea0c405a9d3382f6a681b7f8d677bc Fix for asm { jle short Lret; }, used by Tango since dmd accepts the 'short'. We just throw the 'short/long' away right now. diff -r bb57632d27ea -r 9c63438c3207 gen/asm-x86-64.h --- a/gen/asm-x86-64.h Mon Mar 09 21:38:31 2009 +0100 +++ b/gen/asm-x86-64.h Mon Mar 09 20:11:42 2009 -0600 @@ -1499,7 +1499,15 @@ } if ( token->value == TOKcomma ) + { nextToken(); + } + else if ( token->value == TOKint16 || token->value == TOKint32 || token->value == TOKint64 ) + { + //throw away the 'short' in "jle short Label;". Works for long also. + operands[0] = operands[1]; + return; + } else if ( token->value != TOKeof ) { ok = false; @@ -2911,6 +2919,12 @@ ident = Id::__dollar; goto do_dollar; break; + case TOKint16: + case TOKint32: + case TOKint64: + //This is for the 'short' in "jle short Label;" + return Handled; + break; default: invalidExpression(); return Handled;