File riscv.patch of Package hobbits

Index: hobbits-0.54.1/src/hobbits-core/bitarray.cpp
===================================================================
--- hobbits-0.54.1.orig/src/hobbits-core/bitarray.cpp
+++ hobbits-0.54.1/src/hobbits-core/bitarray.cpp
@@ -19,12 +19,12 @@
 #define bswap64(X) _byteswap_uint64((X))
 #endif
 
-static char BIT_MASKS[8] = {
-    -128, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01
+static unsigned char BIT_MASKS[8] = {
+    0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01
 };
 
-static char INVERSE_BIT_MASKS[8] = {
-    0x7f, -65, -33, -17, -9, -5, -3, -2
+static unsigned char INVERSE_BIT_MASKS[8] = {
+    0x7f, 0xbf, 0xdf, 0xef, 0xf7, 0xfb, 0xfd, 0xfe
 };
 
 //static quint64 BYTE_MASKS[8] = {
openSUSE Build Service is sponsored by