From: Michael R. Crusoe <crusoe@debian.org>
Subject: Fix compilation on riscv5
--- hisat2.orig/alphabet.cpp
+++ hisat2/alphabet.cpp
@@ -400,7 +400,7 @@
 
 const char *iupacs = "!ACMGRSVTWYHKDBN!acmgrsvtwyhkdbn";
 
-char mask2iupac[16] = {
+int mask2iupac[16] = {
 	-1,
 	'A', // 0001
 	'C', // 0010
--- hisat2.orig/alphabet.h
+++ hisat2/alphabet.h
@@ -65,7 +65,7 @@
 /// corresponding 2-bit nucleotide
 extern uint8_t nuccol2nuc[5][5];
 /// Convert a 4-bit mask into an IUPAC code
-extern char mask2iupac[16];
+extern int mask2iupac[16];
 
 /// Convert an ascii color to an ascii dna char
 extern char col2dna[];
--- hisat2.orig/sstring.h
+++ hisat2/sstring.h
@@ -3326,7 +3326,7 @@
 	 */
 	char toChar(size_t idx) const {
 		assert_range((int)this->cs_[idx], 0, 15);
-		return mask2iupac[(int)this->cs_[idx]];
+		return (char)mask2iupac[(int)this->cs_[idx]];
 	}
 
 	/**
