From df01566d67dc549d01a27601071062a23a403b32 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Thu, 19 Sep 2024 12:46:32 +0900 Subject: [PATCH] Fix type conversion in twobit_sequence function --- ext/bio/twobit/twobit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/bio/twobit/twobit.c b/ext/bio/twobit/twobit.c index f875217..ce197e0 100644 --- a/ext/bio/twobit/twobit.c +++ b/ext/bio/twobit/twobit.c @@ -250,8 +250,8 @@ twobit_sequence(VALUE self, VALUE chrom, VALUE rbstart, VALUE rbend) TwoBit *tb; ch = StringValueCStr(chrom); - startl = NUM2UINT32(rbstart); - endl = NUM2UINT32(rbend); + startl = NUM2ULONG(rbstart); + endl = NUM2ULONG(rbend); tb = getTwoBit(self); if (!tb)