提交 14cc1ed7 编写于 作者: M Michael Meskes

Made function better readable.

上级 6e3117c3
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.52 2009/09/18 13:13:32 meskes Exp $ */ /* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.53 2009/11/24 16:30:31 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL #define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h" #include "postgres_fe.h"
...@@ -364,10 +364,11 @@ ECPGset_noind_null(enum ECPGttype type, void *ptr) ...@@ -364,10 +364,11 @@ ECPGset_noind_null(enum ECPGttype type, void *ptr)
static bool static bool
_check(unsigned char *ptr, int length) _check(unsigned char *ptr, int length)
{ {
for (; length > 0 && ptr[--length] == 0xff;); for (length--; length >= 0; length--)
if (length <= 0) if (ptr[length] != 0xff)
return true; return false;
return false;
return true;
} }
bool bool
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册