Skip to content

Commit 8510d02

Browse files
Copilotmouse07410
andcommitted
Fix compilation error - remove reference to out-of-scope ecbits variable
Co-authored-by: mouse07410 <5923577+mouse07410@users.noreply.github.com>
1 parent 59474b1 commit 8510d02

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

skeletons/converter-example.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,12 +1051,11 @@ data_decode_from_file(enum asn_transfer_syntax isyntax, asn_TYPE_descriptor_t *p
10511051
(long)DynamicBuffer.length);
10521052

10531053
/* Provide detailed error information */
1054-
if(rval.consumed > 0 || ecbits > 0) {
1054+
if(rval.consumed > 0) {
10551055
/* We have position information about where the failure occurred */
1056-
/* rval.consumed is in bytes, ecbits is the remaining bits */
10571056
fprintf(stderr, "%s: "
1058-
"Decode failed at byte %ld, bit %d: %s\n",
1059-
name, (long)(new_offset + rval.consumed), ecbits,
1057+
"Decode failed at byte %ld: %s\n",
1058+
name, (long)(new_offset + rval.consumed),
10601059
(rval.code == RC_WMORE)
10611060
? "Unexpected end of input"
10621061
: "Input processing error");

0 commit comments

Comments
 (0)