UpstandingHackers / hammer

Parser combinators for binary formats, in C. Yes, in C. What? Don't look at me like that.
GNU General Public License v2.0
430 stars 40 forks source link

add const to the pointer arg to h_make_bytes #196

Open pesco opened 4 years ago

pesco commented 4 years ago

got a compiler complaint in my PDF parser from this: can't use h_make_bytes() on arrays you only have a const handle on.

i think this was probably a simple oversight in the type (the field in HBytes is const anyway), but my mind is elsewhere right now, so I'm leaving it as an open pull request for the moment.