Skip to content

Commit

Permalink
Fix #163, copypasta in const size() parsing for static sketch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Feinberg committed Nov 12, 2015
1 parent 82e9fd7 commit 6f4dfbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/src/jycessing/get_settings.py
Expand Up @@ -20,7 +20,7 @@ def extract_settings(module):
if len(args) > 0 and isinstance(args[0], ast.Num):
__width__ = args[0].n
if len(args) > 1 and isinstance(args[1], ast.Num):
__height__ = args[0].n
__height__ = args[1].n
if len(args) > 2:
if isinstance(args[2], ast.Str):
__renderer__ = args[2].s
Expand Down
6 changes: 3 additions & 3 deletions testing/resources/test_static_size.py
@@ -1,5 +1,5 @@
def settings():
size(10, 10)

size(11, 13)
assert(width == 11)
assert(height == 13)
print 'OK'
exit()

0 comments on commit 6f4dfbd

Please sign in to comment.