aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-05-09 18:17:47 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-05-09 18:17:47 +0000
commit7fdbb8e3537c6baee61ff26e52e0923de15c6b3f (patch)
tree7c9db615d7912c6fe7a71aa5ff105953f718c094 /src
parent2ea56cbda6ae67dc8d17085b52fafd16542918ad (diff)
downloadpostgresql-7fdbb8e3537c6baee61ff26e52e0923de15c6b3f.tar.gz
postgresql-7fdbb8e3537c6baee61ff26e52e0923de15c6b3f.zip
Suppress signed-vs-unsigned-char warning.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index 86e8a09a13b..f6ad13bed81 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2010, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.126 2010/05/09 02:15:59 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.127 2010/05/09 18:17:47 tgl Exp $
*/
#include "postgres_fe.h"
@@ -928,14 +928,14 @@ print_aligned_text(const printTableContent *cont, FILE *fout)
/* spaces first */
fprintf(fout, "%*s", width_wrap[j] - chars_to_output, "");
fputnbytes(fout,
- this_line->ptr + bytes_output[j],
+ (char *) (this_line->ptr + bytes_output[j]),
bytes_to_output);
}
else /* Left aligned cell */
{
/* spaces second */
fputnbytes(fout,
- this_line->ptr + bytes_output[j],
+ (char *) (this_line->ptr + bytes_output[j]),
bytes_to_output);
}