Don't assign from a ternary operator expression in scan's implementation
to avoid confusing nvcc's sm_1x pointer space tracking.

Fixes #22