make enum class SegmentType a ": short"