Correct some of the literals and replace *2 with << 1.

Signed-off-by: Stefan Marr <git@stefan-marr.de>