Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit426030e

Browse files
committed
Remove unnecessary parentheses in if() statements.
1 parentef58703 commit426030e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/backend/utils/adt/float.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.130 2006/10/05 01:40:45 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.131 2006/12/23 02:13:24 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1157,7 +1157,7 @@ dtoi4(PG_FUNCTION_ARGS)
11571157
float8num=PG_GETARG_FLOAT8(0);
11581158
int32result;
11591159

1160-
if ((num<INT_MIN)||(num>INT_MAX))
1160+
if (num<INT_MIN||num>INT_MAX)
11611161
ereport(ERROR,
11621162
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
11631163
errmsg("integer out of range")));
@@ -1176,7 +1176,7 @@ dtoi2(PG_FUNCTION_ARGS)
11761176
float8num=PG_GETARG_FLOAT8(0);
11771177
int16result;
11781178

1179-
if ((num<SHRT_MIN)||(num>SHRT_MAX))
1179+
if (num<SHRT_MIN||num>SHRT_MAX)
11801180
ereport(ERROR,
11811181
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
11821182
errmsg("smallint out of range")));
@@ -1223,7 +1223,7 @@ ftoi4(PG_FUNCTION_ARGS)
12231223
float4num=PG_GETARG_FLOAT4(0);
12241224
int32result;
12251225

1226-
if ((num<INT_MIN)||(num>INT_MAX))
1226+
if (num<INT_MIN||num>INT_MAX)
12271227
ereport(ERROR,
12281228
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
12291229
errmsg("integer out of range")));
@@ -1242,7 +1242,7 @@ ftoi2(PG_FUNCTION_ARGS)
12421242
float4num=PG_GETARG_FLOAT4(0);
12431243
int16result;
12441244

1245-
if ((num<SHRT_MIN)||(num>SHRT_MAX))
1245+
if (num<SHRT_MIN||num>SHRT_MAX)
12461246
ereport(ERROR,
12471247
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
12481248
errmsg("smallint out of range")));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp