Commit 2b57a4a
src: fix casts to not be undefined behavior
I guess if these were broken in practice, V8/Node.js itself would also
experience difficulties with it, but there’s no real reason not to use
the proper alternatives.
PR-URL: #1070
Reviewed-By: Michael Dawson <[email protected]>1 parent 76de4d8 commit 2b57a4a
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
| 2047 | + | |
2047 | 2048 | | |
2048 | | - | |
| 2049 | + | |
| 2050 | + | |
2049 | 2051 | | |
2050 | 2052 | | |
2051 | 2053 | | |
| |||
3967 | 3969 | | |
3968 | 3970 | | |
3969 | 3971 | | |
3970 | | - | |
3971 | | - | |
| 3972 | + | |
| 3973 | + | |
3972 | 3974 | | |
3973 | | - | |
| 3975 | + | |
3974 | 3976 | | |
3975 | 3977 | | |
3976 | 3978 | | |
| |||
0 commit comments