Cleanup and size reduction of Ast/Expr.

This commit is contained in:
Christoffer Lerno
2023-08-18 01:57:56 +02:00
parent 7a39933c97
commit 957ce320ae
36 changed files with 148 additions and 162 deletions

View File

@@ -329,7 +329,6 @@ void scratch_buffer_append_double(double d)
scratch_buffer.len += len_needed;
//removing unused zeroes and dot
size_t i = scratch_buffer.len;
while (scratch_buffer.len > 0)
{
if (scratch_buffer.str[scratch_buffer.len - 1] != '0' && scratch_buffer.str[scratch_buffer.len - 1] != '.')