Mercurial > hg > sidinfo
changeset 373:5554e9ec9146
Oops, we were supposed to read LE, not BE. Fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Oct 2021 14:56:22 +0300 |
parents | 911814a9d5ee |
children | 68ded29cc997 |
files | sidlib.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sidlib.c Fri Oct 08 14:51:19 2021 +0300 +++ b/sidlib.c Fri Oct 08 14:56:22 2021 +0300 @@ -185,7 +185,7 @@ // If load address is 0, we need to get it if (psid->loadAddress == 0 && - !thfread_be16(ctx, &psid->loadAddress)) + !thfread_le16(ctx, &psid->loadAddress)) { ret = th_io_error(ctx, ctx->status, "Error reading SID data (load address).");