Corrected compiler warning

'cast of int to differing enum'
and don't call thrust with zero.