sched: fixed a 64-bits only bug resulting in a Qt runtime warning