mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
fixed compiling bug of libedit on qnx
discarded using of uint in cmd-line-utils/libedit/chared.c because it's undefined on qnx cmd-line-utils/libedit/chared.c: discarded using of uint because it's undefined on qnx
This commit is contained in:
parent
7728843c66
commit
51fce2d247
1 changed files with 2 additions and 2 deletions
|
|
@ -62,13 +62,13 @@ cv_undo(EditLine *el)
|
|||
{
|
||||
c_undo_t *vu = &el->el_chared.c_undo;
|
||||
c_redo_t *r = &el->el_chared.c_redo;
|
||||
uint size;
|
||||
int size;
|
||||
|
||||
/* Save entire line for undo */
|
||||
size = el->el_line.lastchar - el->el_line.buffer;
|
||||
vu->len = size;
|
||||
vu->cursor = el->el_line.cursor - el->el_line.buffer;
|
||||
memcpy(vu->buf, el->el_line.buffer, size);
|
||||
memcpy(vu->buf, el->el_line.buffer, (size_t)size);
|
||||
|
||||
/* save command info for redo */
|
||||
r->count = el->el_state.doingarg ? el->el_state.argument : 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue