[1627] in BarnOwl Developers
[nelhage/barnowl] 0f15f1: owl_list_grow, owl_dict_insert_element: Donât us...
daemon@ATHENA.MIT.EDU (noreply@github.com)
Thu Oct 29 18:19:08 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
Date: Thu, 20 Aug 2009 18:20:11 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: http://github.com/nelhage/barnowl
Commit: 0f15f12ab716d2a95fb48da6454a3434b88e1d09
http://github.com/nelhage/barnowl/commit/0f15f12ab716d2a95fb48da6454a3434b88e1d09
Author: Anders Kaseorg <andersk@mit.edu>
Date: 2009-08-20 (Thu, 20 Aug 2009)
Changed paths:
M dict.c
M list.c
Log Message:
-----------
owl_list_grow, owl_dict_insert_element: Don’t use fuzzy math.
• Make sure to allocate at least as many elements as were requested.
• Don’t use floating point math to compute the expansion amount.
• In owl_dict_insert_element, reallocate using the right element size
instead of relying on the GROWAT fudge factor (WTF?).
Signed-off-by: Anders Kaseorg <andersk@mit.edu>