Skip to content

Commit db41fc5

Browse files
author
Raven G. Duran
committed
Fixed malloc() issue
1 parent 9957f3d commit db41fc5

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

avl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void doInOrder(){
196196
}
197197

198198
struct node* newNode(int value,struct node *parent){
199-
struct node *root = malloc(sizeof(struct node));
199+
struct node *root = (struct node*)malloc(sizeof(struct node));
200200
root->value = value;
201201
root->parent = parent;
202202
root->left = NULL;

avl.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)