]> granicus.if.org Git - postgresql/commitdiff
Suppress signed-vs-unsigned-char warning.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 May 2010 18:17:52 +0000 (18:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 May 2010 18:17:52 +0000 (18:17 +0000)
src/bin/psql/print.c

index 5c0547c260514d8973a515887bd2a6c53e4f9dd7..0f17fd7826100cdca76dc0efc3e31743676cc275 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2000-2009, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.116.2.4 2010/05/08 16:40:03 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.116.2.5 2010/05/09 18:17:52 tgl Exp $
  */
 #include "postgres_fe.h"
 
@@ -828,14 +828,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);
                                                if (finalspaces)
                                                        fprintf(fout, "%*s", width_wrap[j] - chars_to_output, "");