killed a warning about incompatible integer comparison
fixed an error catched by clang-undefined-checker

need to initialize dummy flags rather than relying
on random values