Commit 937de41a authored by unknown's avatar unknown

ndb -

  Fix compile error with gcc296


ndb/src/common/util/SimpleProperties.cpp:
  Fix compile error with gcc296
parent 5f5fc659
...@@ -51,11 +51,12 @@ SimpleProperties::Writer::add(const char * value, int len){ ...@@ -51,11 +51,12 @@ SimpleProperties::Writer::add(const char * value, int len){
union { union {
Uint32 lastWord; Uint32 lastWord;
char lastBytes[4]; char lastBytes[4];
}; } tmp;
memcpy(lastBytes, tmp.lastWord =0 ;
memcpy(tmp.lastBytes,
value + putLen*4, value + putLen*4,
len - putLen*4); len - putLen*4);
return putWord(lastWord); return putWord(tmp.lastWord);
} }
bool bool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment