Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
21d16ca7
Commit
21d16ca7
authored
Apr 28, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Bug#8321 - myisampack bug in compression algorithm
Merge from 4.0.
parents
b411128f
994674c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
myisam/myisampack.c
myisam/myisampack.c
+7
-2
No files found.
myisam/myisampack.c
View file @
21d16ca7
...
...
@@ -31,6 +31,7 @@
#define __GNU_LIBRARY__
/* Skip warnings in getopt.h */
#endif
#include <my_getopt.h>
#include <assert.h>
#if INT_MAX > 32767
#define BITS_SAVED 32
...
...
@@ -1991,7 +1992,9 @@ static void write_bits (register ulong value, register uint bits)
{
reg3
uint
byte_buff
;
bits
=
(
uint
)
-
file_buffer
.
bits
;
byte_buff
=
file_buffer
.
current_byte
|
(
uint
)
(
value
>>
bits
);
DBUG_ASSERT
(
bits
<=
8
*
sizeof
(
value
));
byte_buff
=
(
file_buffer
.
current_byte
|
((
bits
!=
8
*
sizeof
(
value
))
?
(
uint
)
(
value
>>
bits
)
:
0
));
#if BITS_SAVED == 32
*
file_buffer
.
pos
++=
(
byte
)
(
byte_buff
>>
24
)
;
*
file_buffer
.
pos
++=
(
byte
)
(
byte_buff
>>
16
)
;
...
...
@@ -1999,7 +2002,9 @@ static void write_bits (register ulong value, register uint bits)
*
file_buffer
.
pos
++=
(
byte
)
(
byte_buff
>>
8
)
;
*
file_buffer
.
pos
++=
(
byte
)
byte_buff
;
value
&=
(
1
<<
bits
)
-
1
;
DBUG_ASSERT
(
bits
<=
8
*
sizeof
(
ulong
));
if
(
bits
!=
8
*
sizeof
(
value
))
value
&=
(((
ulong
)
1
)
<<
bits
)
-
1
;
#if BITS_SAVED == 16
if
(
bits
>=
sizeof
(
uint
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment