]> git.donarmstrong.com Git - samtools.git/blobdiff - sam_view.c
* samtools-0.1.4-9 (r340)
[samtools.git] / sam_view.c
index 50192f17f647bf64dc1b060343095d37ce120218..95a52c82513c41349afbc86d89249c068b3d20c4 100644 (file)
@@ -14,7 +14,7 @@ static inline int __g_skip_aln(const bam_header_t *h, const bam1_t *b)
        if (g_library) {
                uint8_t *s = bam_aux_get(b, "RG");
                if (s) {
-                       const char *p = bam_strmap_get(h->rg2lib, s + 1);
+                       const char *p = bam_strmap_get(h->rg2lib, (char*)(s + 1));
                        return (p && strcmp(p, g_library) == 0)? 0 : 1;
                } else return 1;
        } else return 0;