Skip to content

Commit

Permalink
compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Feb 15, 2023
1 parent 9586a59 commit 4d80442
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alphabet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ int dnacomp[5] = {

const char *iupacs = "!ACMGRSVTWYHKDBN!acmgrsvtwyhkdbn";

char mask2iupac[16] = {
int mask2iupac[16] = {
-1,
'A', // 0001
'C', // 0010
Expand Down
2 changes: 1 addition & 1 deletion alphabet.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ extern uint8_t dinuc2color[5][5];
/// 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[];
Expand Down
2 changes: 1 addition & 1 deletion sstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -3326,7 +3326,7 @@ class SDnaMaskString : public SStringExpandable<char, S, M> {
*/
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]];
}

/**
Expand Down

0 comments on commit 4d80442

Please sign in to comment.