Commit 5d59fd3
committed
libscript: Don't mix enum types.
The on-disk value saved in the compiled LCB bytecode for the mode of a
handler parameter (`in`/`out`/`inout`) is described by the
`MCScriptHandlerTypeParameterMode` enumeration. However, when
constructing an `MCHandlerTypeInfo` value for use at runtime, these
values need to be translated to the `MCHandlerTypeFieldMode`
enumeration. This patch adds an explicit `inline` conversion method
to the `MCScriptHandlerTypeParameter` structure.
Coverity-Id: 169841 parent 0de9d03 commit 5d59fd3
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
| 731 | + | |
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
158 | 176 | | |
159 | 177 | | |
160 | 178 | | |
| |||
0 commit comments