From 4c9e549aa3d65c6b8c6b001895904cc82cb81a64 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Mon, 4 Jan 2016 16:00:05 +0100 Subject: edge: Add methods and operators to GprsCodingScheme Add a few new operators and methods to support the use of GprsCodingScheme instead of the plain integer currently used. Sponsored-by: On-Waves ehf --- src/tbf_dl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tbf_dl.cpp') diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index 8bac99f3..e8059929 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -749,7 +749,7 @@ int gprs_rlcmac_dl_tbf::analyse_errors(char *show_rbb, uint8_t ssn, /* Get statistics for current CS */ /* TODO: Use GprsCodingScheme everywhere and remove cast */ - if (rlc_data->cs != (GprsCodingScheme::Scheme)current_cs()) { + if (rlc_data->cs != GprsCodingScheme((GprsCodingScheme::Scheme)current_cs())) { /* This block has already been encoded with a different * CS, so it doesn't help us to decide, whether the * current CS is ok. Ignore it. */ -- cgit v1.2.3