Commit dc8bc2a
committed
Coerce to true_ctype in tensor_factory
This should fix the problem where attempts to test `bool` are often wonky in OSS and fail UBSAN internally; it is undefined behavior to store a value other than 0 or 1 for type `bool`.
ghstack-source-id: 3a79fd8
ghstack-comment-id: 2608475564
Pull Request resolved: #78561 parent 2411c99 commit dc8bc2a
1 file changed
+23
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
283 | 286 | | |
284 | 287 | | |
285 | 288 | | |
| |||
319 | 322 | | |
320 | 323 | | |
321 | 324 | | |
322 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
323 | 329 | | |
324 | 330 | | |
325 | 331 | | |
| |||
721 | 727 | | |
722 | 728 | | |
723 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
724 | 737 | | |
725 | 738 | | |
726 | 739 | | |
| |||
1019 | 1032 | | |
1020 | 1033 | | |
1021 | 1034 | | |
1022 | | - | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1023 | 1043 | | |
1024 | 1044 | | |
1025 | 1045 | | |
| |||
0 commit comments