From c04f61e9b5747763dcf31c4e26eb3739c16e58a5 Mon Sep 17 00:00:00 2001 From: James Bonfield Date: Mon, 15 May 2023 14:21:28 +0100 Subject: [PATCH] Add a missing break statement in cram_codec_to_id. (#1614) Note: This code is currently not used except in the experimental CRAMv4.0. --- cram/cram_codecs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cram/cram_codecs.c b/cram/cram_codecs.c index 21240c141..cc5e52b2c 100644 --- a/cram/cram_codecs.c +++ b/cram/cram_codecs.c @@ -3910,7 +3910,8 @@ int cram_codec_to_id(cram_codec *c, int *id2) { switch (c->codec) { case E_CONST_INT: case E_CONST_BYTE: - bnum1 = -2; // no blocks used + bnum1 = -2; // no blocks used + break; case E_HUFFMAN: bnum1 = c->u.huffman.ncodes == 1 ? -2 : -1;