Fix indenting for MAGMA flags
Remove C-style type casts