turn unnamed enum with single member into const int