mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Removed unsigned/signed mismatches.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.57 2009/01/15 11:52:54 petere Exp $ */
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.58 2009/05/20 16:49:23 meskes Exp $ */
|
||||
|
||||
#define POSTGRES_ECPG_INTERNAL
|
||||
#include "postgres_fe.h"
|
||||
@ -151,7 +151,7 @@ static char *
|
||||
ecpg_strndup(const char *str, size_t len)
|
||||
{
|
||||
int real_len = strlen(str);
|
||||
int use_len = (real_len > len) ? len : real_len;
|
||||
int use_len = (real_len > len) ? (int)len : real_len;
|
||||
|
||||
char *new = malloc(use_len + 1);
|
||||
|
||||
|
Reference in New Issue
Block a user