Commit ac5e48f
committed
sv.h: Make SvIsUV() return 1 (rather than 0x80000000) for true condition
This would make it easier to receive the result with `bool` type.
Note that (implicit) casting to C99 `_Bool` automatically converts
any nonzero scalar values to 1, so that this change is technically
not necessary in C99 which perl now requires to compile. But I think
it will keep the code less surprising.1 parent 778ca25 commit ac5e48f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | | - | |
| 1048 | + | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
| |||
0 commit comments