Skip to content

Commit ea1152c

Browse files
cstackkodemartin
andauthored
Fix error in part3.md
Co-Authored-By: kodemartin <kodemartin@protonmail.ch>
1 parent c7074b0 commit ea1152c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_parts/part3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Speaking of which, here is how we figure out where to read/write in memory for a
132132
+void* row_slot(Table* table, uint32_t row_num) {
133133
+ uint32_t page_num = row_num / ROWS_PER_PAGE;
134134
+ void* page = table->pages[page_num];
135-
+ if (page = NULL) {
135+
+ if (page == NULL) {
136136
+ // Allocate memory only when we try to access page
137137
+ page = table->pages[page_num] = malloc(PAGE_SIZE);
138138
+ }

0 commit comments

Comments
 (0)