diff --git a/Hashtable/Hashtable.c b/Hashtable/Hashtable.c index f74f8cf..33ec495 100644 --- a/Hashtable/Hashtable.c +++ b/Hashtable/Hashtable.c @@ -30,7 +30,7 @@ uint16 Hashtable_height(Hashtable* ht) { return HT_HEIGHTS[ht->hein]; } void Hashtable_expand(Hashtable* ht){ if(ht->hein>=HT_HEIN_MAX) throw(ERR_MAXLENGTH); - Autoarr(KVPair)** newrows=malloc(HT_HEIGHTS[++ht->hein]*sizeof(Autoarr(KVPair))); + Autoarr(KVPair)** newrows=malloc(HT_HEIGHTS[++ht->hein]*sizeof(Autoarr(KVPair)*)); for(uint16 i=0;ihein];i++) newrows[i]=Autoarr_create(KVPair,ARR_BC,ARR_BL); diff --git a/SearchTree/SearchTree.c b/SearchTree/SearchTree.c index 6e47548..8f86ab4 100644 --- a/SearchTree/SearchTree.c +++ b/SearchTree/SearchTree.c @@ -51,12 +51,12 @@ void ST_push(STNode* node_first, const char* key, Unitype value){ while(*key){ indexes3 i3=splitindex((uint8)*key); if(!node_last->branches){ - node_last->branches=(STNode****)malloc(8*sizeof(STNode*)); + node_last->branches=(STNode****)malloc(8*sizeof(STNode***)); for(uint8 i=0;i<8;i++) node_last->branches[i]=(STNode***)NULL; } if(!node_last->branches[i3.n32]){ - node_last->branches[i3.n32]=(STNode***)malloc(8*sizeof(STNode*)); + node_last->branches[i3.n32]=(STNode***)malloc(8*sizeof(STNode**)); for(uint8 i=0;i<8;i++) node_last->branches[i3.n32][i]=(STNode**)NULL; } diff --git a/kerep.vcxproj b/kerep.vcxproj index 8bf4ec8..af65cec 100644 --- a/kerep.vcxproj +++ b/kerep.vcxproj @@ -204,7 +204,6 @@ - @@ -215,6 +214,8 @@ + + @@ -222,9 +223,8 @@ - + - @@ -234,6 +234,8 @@ + + diff --git a/kerep.vcxproj.filters b/kerep.vcxproj.filters index 362d871..1939073 100644 --- a/kerep.vcxproj.filters +++ b/kerep.vcxproj.filters @@ -63,6 +63,12 @@ Файлы заголовков + + Файлы заголовков + + + Файлы заголовков + @@ -134,5 +140,14 @@ Исходные файлы + + Исходные файлы + + + Исходные файлы + + + Исходные файлы + \ No newline at end of file