Skip to content

Commit

Permalink
FIX issue #598
Browse files Browse the repository at this point in the history
min/maxing to in an integer value caused an integer to be returned in the edge case, instead of the wanted float
  • Loading branch information
Aeefire authored Mar 7, 2017
1 parent 3537c3c commit a34e2ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _clamp_norm_point(pos):
Grossly bigger or smaller numbers are results bad exrapolation
and can cause overflow erorr when denormalized and cast as int32.
'''
return min(100,max(-100,pos[0])),min(100,max(-100,pos[1]))
return min(100.,max(-100.,pos[0])),min(100.,max(-100.,pos[1]))

class Gaze_Mapping_Plugin(Plugin):
'''base class for all gaze mapping routines'''
Expand Down

0 comments on commit a34e2ae

Please sign in to comment.