splint fixes
minor splint improvement suggestion
more splint -weak fixes
more splint -weak fixes
adds MINT_MAX and MINT_MIN