Show newer
the virgin uses crypto to buy drugs vs the chad uses crypto to avoid paying international wire transfer fees

@Binkle @ademan Yep, it's compilers :lul: We have it mandatory.
I might ping you then, thanks.

@ademan @Binkle Yes it was the issue. God I'm dumb. Thank you for help.

@ademan @Binkle Sorry, no, it's a school project, but I think I found the issue.
I'm getting the wrong sizeof because I'm stupid and typed in the wrong struct.

void symtable_init(symtable_t **table){
(*table) = (symtable_t *)malloc(sizeof (symtable_item_t));
for(int i = 0; i < TABLE_SIZE; i++){
(**table)[i] = NULL;
}
}

@Binkle @ademan Wtf, now that I commented out a previous few lines, the print works and says 24.
Fuck. I think a previous function might be doing something weird. Malloc seems to work

@Binkle malloc.c:2379: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.

Show older
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.