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

Commit3a1cc07

Browse files
committed
Cleanup for cash patch .
1 parentd88ff48 commit3a1cc07

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* workings can be found in the book "Software Solutions in C" by
1010
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
1111
*
12-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.13 1997/09/1304:39:08 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.14 1997/09/1312:05:32 momjian Exp $
1313
*/
1414

1515
#include<stdio.h>
@@ -219,25 +219,25 @@ cash_out(Cash *in_value)
219219
}
220220

221221
/* we work with positive amounts and add the minus sign at the end */
222-
if (*value<0)
222+
if (value<0)
223223
{
224224
minus=1;
225-
*value *=-1;
225+
value *=-1;
226226
}
227227

228228
/* allow for trailing negative strings */
229229
memset(buf,' ',CASH_BUFSZ);
230230
buf[TERMINATOR]=buf[LAST_PAREN]='\0';
231231

232-
while (*value||count> (point_pos-2))
232+
while (value||count> (point_pos-2))
233233
{
234234
if (points&&count==point_pos)
235235
buf[count--]=dsymbol;
236236
elseif (comma&&count % (mon_group+1)==comma_position)
237237
buf[count--]=comma;
238238

239-
buf[count--]= (*value %10)+'0';
240-
*value /=10;
239+
buf[count--]= (value %10)+'0';
240+
value /=10;
241241
}
242242

243243
buf[count]=csymbol;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp