Fix handling of long constants in binary mode