[F] Fixed compiler warnings
This commit is contained in:
parent
b0d385f592
commit
0c8a8793a0
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user