We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 894ac23 commit c6a2450Copy full SHA for c6a2450
src/ssw.h
@@ -168,8 +168,8 @@ int32_t mark_mismatch (int32_t ref_begin1,
168
@param op_letter CIGAR operation character ('M', 'I', etc)
169
@return 32-bit unsigned integer, representing encoded CIGAR operation and length
170
*/
171
-static inline uint32_t to_cigar_int (uint32_t length, char op_letter) {
172
- return (length << BAM_CIGAR_SHIFT) | (encoded_ops[(int)op_letter]);
+static inline uint32_t to_cigar_int (uint32_t length, unsigned char op_letter) {
+ return (length << BAM_CIGAR_SHIFT) | (encoded_ops[op_letter]);
173
}
174
175
/*! @function Extract CIGAR operation character from CIGAR 32-bit unsigned integer
0 commit comments