This fixes cffi#460. Unsure it is the correct fix, though, so I'll seek review by making a merge request.