Fix some UB
Fix some UB


Former-commit-id: b115c6c5d4a41644bcb5f67ec3c3a2dc71016b1d [formerly 78ac94f707d4e2bd50c1318d51b648c136f5d00e]
Former-commit-id: e685c503bada6f64db69cd9ec0c23224a85b53b2
Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide