diff --git a/README.md b/README.md index d600dce..ac23dc7 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) -**libfort** - a simple library to create formatted ASCII tables. **libfort** is written in C language and can be used in C and C++ projects. For C++ projects that use compiler with c++11 support there is also availabe convenient c++ wrappers around c functions (see **fort.hpp** in **lib** direrctory). +**libfort** - a simple library to create formatted ASCII tables. **libfort** is written in C language and can be used in C and C++ projects. For C++ projects that use compiler with c++11 support there are also availabe convenient c++ wrappers around c functions (see **fort.hpp** in **lib** direrctory). **Features:** - Easy to integrate (only 2 files: **fort.c** and **fort.h** from **lib** direrctory) diff --git a/lib/fort.c b/lib/fort.c index 4687f80..53e684a 100644 --- a/lib/fort.c +++ b/lib/fort.c @@ -3734,7 +3734,7 @@ int print_row_separator(char *buffer, size_t buffer_sz, * Regions above top row and below bottom row areconsidered full of virtual * GroupSlaveCell cells */ - enum CellType *top_row_types = F_MALLOC(sizeof(enum CellType) * cols * 2); + enum CellType *top_row_types = (enum CellType *)F_MALLOC(sizeof(enum CellType) * cols * 2); if (top_row_types == NULL) { return FT_MEMORY_ERROR; } @@ -3907,7 +3907,7 @@ int wprint_row_separator(wchar_t *buffer, size_t buffer_sz, * Regions above top row and below bottom row areconsidered full of virtual * GroupSlaveCell cells */ - enum CellType *top_row_types = F_MALLOC(sizeof(enum CellType) * cols * 2); + enum CellType *top_row_types = (enum CellType *)F_MALLOC(sizeof(enum CellType) * cols * 2); if (top_row_types == NULL) { return FT_MEMORY_ERROR; } diff --git a/src/row.c b/src/row.c index b12bb7e..bafee6d 100644 --- a/src/row.c +++ b/src/row.c @@ -212,7 +212,7 @@ int print_row_separator(char *buffer, size_t buffer_sz, * Regions above top row and below bottom row areconsidered full of virtual * GroupSlaveCell cells */ - enum CellType *top_row_types = F_MALLOC(sizeof(enum CellType) * cols * 2); + enum CellType *top_row_types = (enum CellType *)F_MALLOC(sizeof(enum CellType) * cols * 2); if (top_row_types == NULL) { return FT_MEMORY_ERROR; } @@ -385,7 +385,7 @@ int wprint_row_separator(wchar_t *buffer, size_t buffer_sz, * Regions above top row and below bottom row areconsidered full of virtual * GroupSlaveCell cells */ - enum CellType *top_row_types = F_MALLOC(sizeof(enum CellType) * cols * 2); + enum CellType *top_row_types = (enum CellType *)F_MALLOC(sizeof(enum CellType) * cols * 2); if (top_row_types == NULL) { return FT_MEMORY_ERROR; }