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

Commit6f2d02d

Browse files
committed
Fix syntax error in to_char fixes --- was defining variable in main code
block, ala C++.
1 parent9b59ddf commit6f2d02d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -----------------------------------------------------------------------
22
* formatting.c
33
*
4-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.61 2003/03/2716:35:30 momjian Exp $
4+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.62 2003/03/2717:10:55 momjian Exp $
55
*
66
*
77
* Portions Copyright (c) 1999-2002, PostgreSQL Global Development Group
@@ -3647,6 +3647,8 @@ NUM_numpart_from_char(NUMProc *Np, int id, int plen)
36473647
staticvoid
36483648
NUM_numpart_to_char(NUMProc*Np,intid)
36493649
{
3650+
intend;
3651+
36503652
if (IS_ROMAN(Np->Num))
36513653
return;
36523654

@@ -3804,7 +3806,7 @@ NUM_numpart_to_char(NUMProc *Np, int id)
38043806
++Np->number_p;
38053807
}
38063808

3807-
intend=Np->num_count+ (Np->num_pre ?1 :0)+ (IS_DECIMAL(Np->Num) ?1 :0);
3809+
end=Np->num_count+ (Np->num_pre ?1 :0)+ (IS_DECIMAL(Np->Num) ?1 :0);
38083810

38093811
if (Np->last_relevant&&Np->last_relevant==Np->number_p)
38103812
end=Np->num_curr;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp