File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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/13 04:39:08 momjian Exp $
12+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.14 1997/09/13 12: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 else if (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 ;
You can’t perform that action at this time.
0 commit comments