Skip to content

bufr_subset_find_values() fails when TLC keys are used #69

@vsouvan

Description

@vsouvan

Testing with the following template:

201013 201023 5012 101003 12001

Shows that if I do a find using a TLC code, ala:

     k = 0;
     bufr_set_key_location( &(codes[k++]), 5002, 64 );
     bufr_set_key_int32( &(codes[k++]), 12001, NULL, 0 );
     n = bufr_subset_find_values( dss, codes, k, 0 );

I get the wrong instance of 12001. The bug appears to be that in bufr_subset_find_values(), a TLC match still increments to the NEXT descriptor in the list, and because that descriptor is replicated, I get it instead of the one which had the matching TLC value.

I'll commit a test case...


Imported from Launchpad using lp2gh.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions