git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3676 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2021-10-28 01:11:30 +00:00
parent 21ba7cb02c
commit 62ad08985c

View File

@ -103,7 +103,7 @@ void tf_trace_begin(tf_trace_t* trace, const char* name)
return;
}
if (!trace->stack || trace->stack->count + 1 < _countof(trace->stack->names))
if (!trace->stack || trace->stack->count + 1 > _countof(trace->stack->names))
{
tf_trace_stack_t* stack = malloc(sizeof(tf_trace_stack_t));
memset(stack, 0, sizeof(*stack));
@ -111,7 +111,7 @@ void tf_trace_begin(tf_trace_t* trace, const char* name)
trace->stack = stack;
}
tf_trace_stack_t* stack = trace->stack;
while (stack->count == 0 && stack->next && stack->count + 1 < _countof(trace->stack->names))
while (stack->count == 0 && stack->next && stack->count + 1 > _countof(trace->stack->names))
{
stack = stack->next;
}