List:Commits« Previous MessageNext Message »
From:MySQL Build Team Date:February 23 2011 11:52pm
Subject:bzr commit into mysql-5.1-telco-6.3 branch (build:3391)
View as plain text  
#At file:///net/helheim/store/bteam/bzr/mysql-6.3.41-release/ based on revid:jonas@stripped

 3391 MySQL Build Team	2011-02-24
      ndb_restore - fix assert (patch by Martin Zaun)

    modified:
      storage/ndb/include/util/NdbTypesUtil.hpp
=== modified file 'storage/ndb/include/util/NdbTypesUtil.hpp'
--- a/storage/ndb/include/util/NdbTypesUtil.hpp	2011-02-19 02:47:10 +0000
+++ b/storage/ndb/include/util/NdbTypesUtil.hpp	2011-02-23 23:52:51 +0000
@@ -435,13 +435,11 @@ NDB_SPECIALIZE_NUM_TYPE_HELPER(Huint64,
 // specialize the Helper template members for non-standard numeric types
 #define NDB_SPECIALIZE_NON_STD_NUM_TYPE_HELPER( H, T, INT3KORR )        \
   template<> inline void H::load(T * t, const char * s) {               \
-    assert(t); assert(s);                                               \
-    assert(t > (const T *)s);                                           \
+    assert(t); assert(s); assert(t != (const T *)s);                    \
     *t = (INT3KORR(s));                                                 \
   }                                                                     \
   template<> inline void H::store(char * t, const T * s) {              \
-    assert(t); assert(s);                                               \
-    assert(((T *)t > s) || ((T *)t < s));                               \
+    assert(t); assert(s); assert((const T *)t != s);                    \
     int3store(t, (*s));                                                 \
   }
 


Attachment: [text/bzr-bundle] bzr/build@mysql.com-20110223235251-9zr4s2i6vhtclsmi.bundle
Thread
bzr commit into mysql-5.1-telco-6.3 branch (build:3391) MySQL Build Team24 Feb