From bad44f8dcabdd2b91e0844dc36cef3b9ed95d989 Mon Sep 17 00:00:00 2001 From: Adam McDaniel Date: Thu, 28 May 2020 13:29:18 -0600 Subject: [PATCH] Fixed compile warning -Woverflow in masstorage.h Original warning message was: large integer implicitly truncated to unsigned type [-Woverflow] --- masstorage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masstorage.h b/masstorage.h index d10d7cd7..5918f2ee 100644 --- a/masstorage.h +++ b/masstorage.h @@ -456,8 +456,8 @@ struct CommandBlockWrapper : public CommandBlockWrapperBase { }; struct { - uint8_t bmCBWCBLength : 4; - uint8_t bmReserved2 : 4; + uint8_t bmCBWCBLength : 6; + uint8_t bmReserved2 : 2; }; uint8_t CBWCB[16];