Jump to content

[FIX][7925] Correct minor output format error inside ByteBuffer class


Recommended Posts

Posted

What bug does the patch fix? What features does the patch add?

This patch will correct the output of the hexlike() function for ByteBuffer class

For which repository revision was the patch created?

7917

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

Didn't find any.

diff --git a/src/shared/ByteBuffer.h b/src/shared/ByteBuffer.h
index 6458976..5a13ea7 100644
--- a/src/shared/ByteBuffer.h
+++ b/src/shared/ByteBuffer.h
@@ -370,7 +370,7 @@ class ByteBuffer
            {
                if ((i == (j*8)) && ((i != (k*16))))
                {
-                    if (read<uint8>(i) < 0x0F)
+                    if (read<uint8>(i) < 0x10)
                    {
                        sLog.outDebugInLine("| 0%X ", read<uint8>(i) );
                    }
@@ -382,7 +382,7 @@ class ByteBuffer
                }
                else if (i == (k*16))
                {
-                    if (read<uint8>(i) < 0x0F)
+                    if (read<uint8>(i) < 0x10)
                    {
                        sLog.outDebugInLine("\\n");
                        if(sLog.IsIncludeTime())
@@ -404,7 +404,7 @@ class ByteBuffer
                }
                else
                {
-                    if (read<uint8>(i) < 0x0F)
+                    if (read<uint8>(i) < 0x10)
                    {
                        sLog.outDebugInLine("0%X ", read<uint8>(i) );
                    }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use