← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~zorba-coders/zorba/win-fix into lp:zorba

 

Juan Zacarias has proposed merging lp:~zorba-coders/zorba/win-fix into lp:zorba.

Commit message:
Fix for Windows

Requested reviews:
  Juan Zacarias (juan457)
  Paul J. Lucas (paul-lucas)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/win-fix/+merge/189190

Fix for Windows
-- 
https://code.launchpad.net/~zorba-coders/zorba/win-fix/+merge/189190
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/runtime/seq/seq_impl.cpp'
--- src/runtime/seq/seq_impl.cpp	2013-10-01 23:33:19 +0000
+++ src/runtime/seq/seq_impl.cpp	2013-10-03 23:06:58 +0000
@@ -34,8 +34,16 @@
 
 inline Item_set_type* new_Item_set( TypeManager const *tm, long tz,
                                     XQPCollator *coll, QueryLoc const &loc ) {
+  int lBucketCount =
+#ifdef WIN32
+        11
+#else
+        ztd::prime_rehash_policy::default_bucket_count
+#endif /* WIN32 */
+  ;
+
   return new Item_set_type(
-    ztd::prime_rehash_policy::default_bucket_count,
+    lBucketCount,
     Item_set_type::hasher(),
     Item_value_equal( tm, tz, coll, loc )
   );