Left Shifting in moodle.c