Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75794 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2011-12-03 15:15:44


Author: steven_watanabe
Date: 2011-12-03 15:15:44 EST (Sat, 03 Dec 2011)
New Revision: 75794
URL: http://svn.boost.org/trac/boost/changeset/75794

Log:
Assert that the hash function works.
Text files modified:
   trunk/tools/build/v2/engine/object.c | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/tools/build/v2/engine/object.c
==============================================================================
--- trunk/tools/build/v2/engine/object.c (original)
+++ trunk/tools/build/v2/engine/object.c 2011-12-03 15:15:44 EST (Sat, 03 Dec 2011)
@@ -212,6 +212,7 @@
     result->header.magic = OBJECT_MAGIC;
 #endif
     memcpy( result->data, string, l + 1 );
+ assert( hash_keyval( result->data ) == result->header.hash );
     set->data[pos] = result;
     strtotal += l + 1;
     ++set->size;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk