File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11#include <errno.h>
22#include <fcntl.h>
33#include <stdbool.h>
4+ #include <stdint.h>
45#include <stdio.h>
56#include <stdlib.h>
67#include <string.h>
7- #include <stdint.h>
88#include <unistd.h>
99
1010typedef struct {
@@ -526,8 +526,8 @@ void read_input(InputBuffer* input_buffer) {
526526}
527527
528528void close_input_buffer (InputBuffer * input_buffer ) {
529- free (input_buffer -> buffer );
530- free (input_buffer );
529+ free (input_buffer -> buffer );
530+ free (input_buffer );
531531}
532532
533533void pager_flush (Pager * pager , uint32_t page_num ) {
@@ -809,7 +809,7 @@ ExecuteResult execute_insert(Statement* statement, Table* table) {
809809 uint32_t key_to_insert = row_to_insert -> id ;
810810 Cursor * cursor = table_find (table , key_to_insert );
811811
812- void * node = get_page (table -> pager , cursor -> page_num );
812+ void * node = get_page (table -> pager , cursor -> page_num );
813813 uint32_t num_cells = * leaf_node_num_cells (node );
814814
815815 if (cursor -> cell_num < num_cells ) {
You can’t perform that action at this time.
0 commit comments