File tree 2 files changed +7
-1
lines changed 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 15
15
- Add ``keep_rows `` method to table classes to support efficient in-place
16
16
table subsetting (:user: `jeromekelleher `, :pr: `2700 `)
17
17
18
+ **Bugfixes **
19
+
20
+ - Fix `UnicodeDecodeError ` when calling `Variant.alleles ` on the `emscripten ` platform.
21
+ (:user: `benjeffery `, :pr: `2754 `, :issue: `2737 `)
22
+
18
23
--------------------
19
24
[0.5.4] - 2023-01-13
20
25
--------------------
Original file line number Diff line number Diff line change @@ -578,7 +578,8 @@ make_alleles(tsk_variant_t *variant)
578
578
goto out ;
579
579
}
580
580
for (j = 0 ; j < variant -> num_alleles ; j ++ ) {
581
- item = Py_BuildValue ("s#" , variant -> alleles [j ], variant -> allele_lengths [j ]);
581
+ item = Py_BuildValue (
582
+ "s#" , variant -> alleles [j ], (Py_ssize_t ) variant -> allele_lengths [j ]);
582
583
if (item == NULL ) {
583
584
Py_DECREF (t );
584
585
goto out ;
You can’t perform that action at this time.
0 commit comments