Changeset 136cff2 in git

Timestamp:
09/03/21 00:06:12 (2 years ago)
Author:
Olly Betts <olly@…>
Branches:
master, proj-api-update
Children:
227fd9a
Parents:
38bc415
git-author:
Olly Betts <olly@…> (09/03/21 00:06:03)
git-committer:
Olly Betts <olly@…> (09/03/21 00:06:12)
Message:

Avoid undefined signed shifts

Shifted a signed integer is undefined behaviour in some cases, so
make the type unsigned where this matters.

Survex itself is only affected on big-endian platforms, but this also
affects the img library on all platforms when used in standalone mode
as it is in other programs.

Fixes #119, reported by Matěj Plch.

(No files)

Note: See TracChangeset for help on using the changeset viewer.