Skip to content

Commit

Permalink
Fix #1112 Convert float32,foat64 argument to float. not int.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebrunner committed Jun 23, 2017
1 parent 4e5c060 commit 9afd6f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ def float32(value):
"""
Create an SPL ``float32`` value.
"""
return Expression('FLOAT32', int(value))
return Expression('FLOAT32', float(value))

def float64(value):
"""
Create an SPL ``float64`` value.
"""
return Expression('FLOAT64', int(value))
return Expression('FLOAT64', float(value))

def rstring(value):
"""
Expand Down

0 comments on commit 9afd6f3

Please sign in to comment.