Changeset 1e816c8 in mainline for uspace/srv/hid/console/gcons.c


Ignore:
Timestamp:
2010-01-06T20:47:57Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2ae1e6e
Parents:
385a3d6
Message:

Prevent mouse wrapping around by fixing limit() fnction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/console/gcons.c

    r385a3d6 r1e816c8  
    241241
    242242/** Return x, where left <= x <= right && |a-x| == min(|a-x|) is smallest */
    243 static inline int limit(size_t a, size_t left, size_t right)
     243static inline ssize_t limit(ssize_t a, ssize_t left, ssize_t right)
    244244{
    245245        if (a < left)
Note: See TracChangeset for help on using the changeset viewer.