1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

_sdbm.c: fix pointers to shift

* ext/sdbm/_sdbm.c (delpair): dst and src point at the ends of
  each data, whereas memmove requires pointers to the beginnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-02-04 08:35:08 +00:00
parent dc3ea52e1c
commit d54db9b2a0

View file

@ -802,7 +802,7 @@ delpair(char *pag, datum key)
}
#else
#ifdef MEMMOVE
memmove(dst, src, m);
memmove(dst-m, src-m, m);
#else
while (m--)
*--dst = *--src;