Commit e91792c9 authored by msvensson@pilot.blaudden's avatar msvensson@pilot.blaudden

Merge pilot.blaudden:/home/msvensson/mysql/bug26678/my50-bug26678

into  pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
parents eb135547 be725180
...@@ -858,9 +858,9 @@ inline T1 SaturatingSubtract(T1 a, T2 b) ...@@ -858,9 +858,9 @@ inline T1 SaturatingSubtract(T1 a, T2 b)
// declares // declares
unsigned int BytePrecision(unsigned long value); unsigned int BytePrecision(word value);
unsigned int BitPrecision(unsigned long); unsigned int BitPrecision(word);
unsigned long Crop(unsigned long value, unsigned int size); word Crop(word value, unsigned int size);
......
...@@ -122,7 +122,7 @@ void xorbuf(byte* buf, const byte* mask, unsigned int count) ...@@ -122,7 +122,7 @@ void xorbuf(byte* buf, const byte* mask, unsigned int count)
} }
unsigned int BytePrecision(unsigned long value) unsigned int BytePrecision(word value)
{ {
unsigned int i; unsigned int i;
for (i=sizeof(value); i; --i) for (i=sizeof(value); i; --i)
...@@ -133,7 +133,7 @@ unsigned int BytePrecision(unsigned long value) ...@@ -133,7 +133,7 @@ unsigned int BytePrecision(unsigned long value)
} }
unsigned int BitPrecision(unsigned long value) unsigned int BitPrecision(word value)
{ {
if (!value) if (!value)
return 0; return 0;
...@@ -154,7 +154,7 @@ unsigned int BitPrecision(unsigned long value) ...@@ -154,7 +154,7 @@ unsigned int BitPrecision(unsigned long value)
} }
unsigned long Crop(unsigned long value, unsigned int size) word Crop(word value, unsigned int size)
{ {
if (size < 8*sizeof(value)) if (size < 8*sizeof(value))
return (value & ((1L << size) - 1)); return (value & ((1L << size) - 1));
......
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