c4e6bf7 Fix several occurrences of undefined behavior

Authored and Committed by jngrad 3 months ago
    Fix several occurrences of undefined behavior
    
        
file added
+669
file modified
+9 -1