Fixed comments an assert
This commit is contained in:
parent
bb4b35e438
commit
ef58b0eb54
@ -2772,7 +2772,7 @@ void cConnection::LogMetadata(const AString & a_Metadata, size_t a_IndentCount)
|
|||||||
{
|
{
|
||||||
int Index = ((unsigned)((unsigned char)a_Metadata[pos])) & 0x1f; // Lower 5 bits = index
|
int Index = ((unsigned)((unsigned char)a_Metadata[pos])) & 0x1f; // Lower 5 bits = index
|
||||||
int Type = ((unsigned)((unsigned char)a_Metadata[pos])) >> 5; // Upper 3 bits = type
|
int Type = ((unsigned)((unsigned char)a_Metadata[pos])) >> 5; // Upper 3 bits = type
|
||||||
//int Length = 0;
|
// int Length = 0;
|
||||||
switch (Type)
|
switch (Type)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
@ -2827,7 +2827,7 @@ void cConnection::LogMetadata(const AString & a_Metadata, size_t a_IndentCount)
|
|||||||
ASSERT(!"Cannot parse item description from metadata");
|
ASSERT(!"Cannot parse item description from metadata");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//int After = bb.GetReadableSpace();
|
// int After = bb.GetReadableSpace();
|
||||||
int BytesConsumed = BytesLeft - bb.GetReadableSpace();
|
int BytesConsumed = BytesLeft - bb.GetReadableSpace();
|
||||||
|
|
||||||
Log("%sslot[%d] = %s (%d bytes)", Indent.c_str(), Index, ItemDesc.c_str(), BytesConsumed);
|
Log("%sslot[%d] = %s (%d bytes)", Indent.c_str(), Index, ItemDesc.c_str(), BytesConsumed);
|
||||||
|
@ -236,7 +236,7 @@ template class SizeChecker<UInt16, 2>;
|
|||||||
|
|
||||||
// Same as assert but in all Self test builds
|
// Same as assert but in all Self test builds
|
||||||
#ifdef SELF_TEST
|
#ifdef SELF_TEST
|
||||||
#define assert_test(x) ( !!(x) || (assert(0), exit(1), 0))
|
#define assert_test(x) ( !!(x) || (assert(!#x), exit(1), 0))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// A generic interface used mainly in ForEach() functions
|
/// A generic interface used mainly in ForEach() functions
|
||||||
|
Loading…
Reference in New Issue
Block a user