From ea2efcf8a1d0be972772af5f50606f5ea23dad00 Mon Sep 17 00:00:00 2001 From: Allan Bazinet Date: Sat, 28 Dec 2024 03:59:38 -0800 Subject: [PATCH] Invert / combine shift out math --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1132ac3b..ad45652a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -533,8 +533,8 @@ namespace bits += 6; if (bits >= 8) { - bytes[byte++] = words >> (bits - 8); bits -= 8; + bytes[byte++] = words >> bits; } }