Changed comparison operator to use assert.
Fixed a typedef.