Fixed C++ port's handling of reversed barcodes: