Commit 34a7400
committed
Packer_write_extension: handle T_BIGNUM
The original code assumed the `ext_type` is a T_FIXNUM.
But if the user submit a number large enough, it can be a T_BIGNUM
which leads to an assertion error in `FIX2INT()`.1 parent 1bad12b commit 34a7400
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
| |||
0 commit comments