Ignore:
Timestamp:
04/27/19 12:07:59 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Using integer division where necessary (re #347).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r921 r922  
    14101410
    14111411        numNotchesM1 = len(self._flapsNotches) - 1
    1412         flapsIncrement = 16383 / numNotchesM1
     1412        flapsIncrement = 16383 // numNotchesM1
    14131413        flapsControl = data[self._monidx_flapsControl]
    1414         flapsIndex = flapsControl / flapsIncrement
     1414        flapsIndex = flapsControl // flapsIncrement
    14151415        if flapsIndex < numNotchesM1:
    14161416            if (flapsControl - (flapsIndex*flapsIncrement) >
Note: See TracChangeset for help on using the changeset viewer.