comparison src/dispnew.c @ 25781:e5579bc77d9e

(direct_output_for_insert): Cast arguments to safe_bcopy to char *.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 20 Sep 1999 23:18:39 +0000
parents fcb92c26acf2
children b7aa6ac26872
comparison
equal deleted inserted replaced
25780:18cf58ed9400 25781:e5579bc77d9e
3138 glyphs = glyph_row->glyphs[TEXT_AREA] + w->cursor.hpos; 3138 glyphs = glyph_row->glyphs[TEXT_AREA] + w->cursor.hpos;
3139 end = glyph_row->glyphs[1 + TEXT_AREA]; 3139 end = glyph_row->glyphs[1 + TEXT_AREA];
3140 3140
3141 /* Make room for new glyphs, then insert them. */ 3141 /* Make room for new glyphs, then insert them. */
3142 xassert (end - glyphs - n >= 0); 3142 xassert (end - glyphs - n >= 0);
3143 safe_bcopy (glyphs, glyphs + n, (end - glyphs - n) * sizeof (*end)); 3143 safe_bcopy ((char *) glyphs, (char *) (glyphs + n),
3144 (end - glyphs - n) * sizeof (*end));
3144 bcopy (it.glyph_row->glyphs[TEXT_AREA], glyphs, n * sizeof *glyphs); 3145 bcopy (it.glyph_row->glyphs[TEXT_AREA], glyphs, n * sizeof *glyphs);
3145 glyph_row->used[TEXT_AREA] = min (glyph_row->used[TEXT_AREA] + n, 3146 glyph_row->used[TEXT_AREA] = min (glyph_row->used[TEXT_AREA] + n,
3146 end - glyph_row->glyphs[TEXT_AREA]); 3147 end - glyph_row->glyphs[TEXT_AREA]);
3147 3148
3148 /* Compute new line width. */ 3149 /* Compute new line width. */