Avoid assignment from ternary operator expression.

Fixes #24