ASPRSorg / LAS

LAS Specification
https://www.asprs.org/committee-general/laser-las-file-format-exchange-activities.html
137 stars 16 forks source link

Use C99 fixed-width integers #120

Closed plimkilde closed 2 years ago

plimkilde commented 2 years ago

This changes the spec to use the more narrowly defined fixed-width integer types in C99, rather than the classic char, short, long etc. Even though the data types are subtly different, I would not consider this a breaking change, but rather a fix to match actual intended and established real-life behavior.

The edits should not be too controversial IMO, with the possible exception of representation of strings - I've retained those as char arrays since relevant C functions will likely use that type, whether or not char is signed on a given platform.

Closes #115

esilvia commented 2 years ago

Requesting review from @hobu because you're more qualified to understand/predict any nuance issues from this change.