Ignore:
Timestamp:
Feb 3, 2013, 2:45:18 PM (7 years ago)
Author:
cameron
Message:

Fix lookahead check for numeric argument on arg 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/lookAhead.py

    r2891 r2892  
    3434    if CheckForLookAhead(callnode):
    3535      if len(callnode.args) == 2:
    36         if not isinstance(callnode.args[0], ast.Num):
     36        if not isinstance(callnode.args[1], ast.Num):
    3737          raise LookAheadError('2nd argument to lookahead, if present, must be a numeric constant')
    3838        peek_amount = callnode.args[1].n
Note: See TracChangeset for help on using the changeset viewer.