# HG changeset patch # User mas01mc # Date 1223410102 0 # Node ID fdeb8db976788a78744482810a7f0a9376c90473 # Parent def30555ac89d536d743f80e541e2a72e6f00064 added portable C++ reinterpret_cast instead of C-style cast to fix 64-bit compile error in query.cpp. This is in advance of re-writing bucket class to include a union{} of pointer and counter fields. diff -r def30555ac89 -r fdeb8db97678 lshlib.cpp --- a/lshlib.cpp Tue Oct 07 18:41:38 2008 +0000 +++ b/lshlib.cpp Tue Oct 07 20:08:22 2008 +0000 @@ -444,10 +444,10 @@ // Find the linked-list pointer at the end of the CORE_ARRAY bucket** H::get_pointer_to_bucket_linked_list(bucket* rowPtr){ - Uns32T numBuckets = (Uns32T) rowPtr->snext; // Cast pointer to unsigned int - Uns32T numPoints = rowPtr->t2 & 0x7FFFFFFF; // Value is stored in low 31 bits of t2 field - bucket** listPtr = reinterpret_cast (reinterpret_cast(rowPtr->next)+numPoints+numBuckets+1); - return listPtr; + Uns32T numBuckets = reinterpret_cast (rowPtr->snext); // Cast pointer to unsigned int + Uns32T numPoints = rowPtr->t2 & 0x7FFFFFFF; // Value is stored in low 31 bits of t2 field + bucket** listPtr = reinterpret_cast (reinterpret_cast(rowPtr->next)+numPoints+numBuckets+1); + return listPtr; } // Interface to Locality Sensitive Hashing G