Missing typecast?

Bug #1000821 reported by Linus Seelinger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-uinput
Invalid
Undecided
Unassigned

Bug Description

Running tuiototouch, I encountered a typecast error in line 135 of

/usr/local/lib/python2.7/dist-packages/uinput/__init__.py

Changing

 _libsuinput.suinput_emit(self.__uinput_fd, ev_type, ev_code, value)

to

_libsuinput.suinput_emit(self.__uinput_fd, ev_type, ev_code, int(value))

solved the problem.

Revision history for this message
a (tuomasjjrasanen) wrote :

Hi and thanks for reporting this problem. However, I'm marking this bug as invalid, because the bug is actually in tuiotouch's side and it's completely different project, which just happens to use python-uinput. The problem is tuiotouch is passing float-value in the first place. The interface of uinput always expects integer values, tuiotouch should ensure that values are ints, not floats.

This bug should be reported to the maintainer of tuiototouch.

This bug is also a duplicate of #752699.

Changed in python-uinput:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.