Fix an assert generating compile-time warnings