mouse07410 / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
93 stars 70 forks source link

Make NativeInteger_rfill.c act more like BIT_STRING_rfill.c #168

Closed lbm98 closed 7 months ago

lbm98 commented 7 months ago

NativeInteger_rfill.c was sometimes ignoring the PER constrains, i added a check which was also present in BIT_STRING_rfill.c and it fixed my problem.

I don't know if this was intended, it's my first PR. Thank you!

lbm98 commented 7 months ago

hmm, the check should probably be inside

#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
->per_constraints

does not make sense otherwise

mouse07410 commented 7 months ago

hmm, the check should probably be inside

That is correct. Let me edit the file in question properly. By the way, welcome - and thanks for the patch!

mouse07410 commented 7 months ago

Your patch has been committed, with some changes. Thanks!