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 1
1
#include <errno.h>
2
2
#include <fcntl.h>
3
3
#include <stdbool.h>
4
+ #include <stdint.h>
4
5
#include <stdio.h>
5
6
#include <stdlib.h>
6
7
#include <string.h>
7
- #include <stdint.h>
8
8
#include <unistd.h>
9
9
10
10
typedef struct {
@@ -526,8 +526,8 @@ void read_input(InputBuffer* input_buffer) {
526
526
}
527
527
528
528
void close_input_buffer (InputBuffer * input_buffer ) {
529
- free (input_buffer -> buffer );
530
- free (input_buffer );
529
+ free (input_buffer -> buffer );
530
+ free (input_buffer );
531
531
}
532
532
533
533
void pager_flush (Pager * pager , uint32_t page_num ) {
@@ -809,7 +809,7 @@ ExecuteResult execute_insert(Statement* statement, Table* table) {
809
809
uint32_t key_to_insert = row_to_insert -> id ;
810
810
Cursor * cursor = table_find (table , key_to_insert );
811
811
812
- void * node = get_page (table -> pager , cursor -> page_num );
812
+ void * node = get_page (table -> pager , cursor -> page_num );
813
813
uint32_t num_cells = * leaf_node_num_cells (node );
814
814
815
815
if (cursor -> cell_num < num_cells ) {
You can’t perform that action at this time.
0 commit comments