Apply a slightly modified patch from talljimbo's bug report in numexpr