lib1512.c: Fixed compilation warning

An enumerated type is mixed with another type.

...as well as a small coding style error.