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
81ef1a41
Commit
81ef1a41
authored
Nov 02, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/sint/uint/ - no sign extend for signed bytes
parent
7e788724
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
strings/decimal.c
strings/decimal.c
+10
-10
No files found.
strings/decimal.c
View file @
81ef1a41
...
...
@@ -719,10 +719,10 @@ int bin2decimal(char *from, decimal *to, int precision, int scale)
dec1
x
;
switch
(
i
)
{
case
1
:
x
=
mi_
s
int1korr
(
from
);
break
;
case
2
:
x
=
mi_
s
int2korr
(
from
);
break
;
case
3
:
x
=
mi_
s
int3korr
(
from
);
break
;
case
4
:
x
=
mi_
s
int4korr
(
from
);
break
;
case
1
:
x
=
mi_
u
int1korr
(
from
);
break
;
case
2
:
x
=
mi_
u
int2korr
(
from
);
break
;
case
3
:
x
=
mi_
u
int3korr
(
from
);
break
;
case
4
:
x
=
mi_
u
int4korr
(
from
);
break
;
default:
DBUG_ASSERT
(
0
);
}
from
+=
i
;
...
...
@@ -735,7 +735,7 @@ int bin2decimal(char *from, decimal *to, int precision, int scale)
for
(
stop
=
from
+
intg0
*
sizeof
(
dec1
);
from
<
stop
;
from
+=
sizeof
(
dec1
))
{
DBUG_ASSERT
(
sizeof
(
dec1
)
==
4
);
*
buf
=
mi_
s
int4korr
(
from
)
^
mask
;
*
buf
=
mi_
u
int4korr
(
from
)
^
mask
;
if
(
buf
>
to
->
buf
||
*
buf
!=
0
)
buf
++
;
else
...
...
@@ -745,7 +745,7 @@ int bin2decimal(char *from, decimal *to, int precision, int scale)
for
(
stop
=
from
+
frac0
*
sizeof
(
dec1
);
from
<
stop
;
from
+=
sizeof
(
dec1
))
{
DBUG_ASSERT
(
sizeof
(
dec1
)
==
4
);
*
buf
=
mi_
s
int4korr
(
from
)
^
mask
;
*
buf
=
mi_
u
int4korr
(
from
)
^
mask
;
buf
++
;
}
if
(
frac0x
)
...
...
@@ -754,10 +754,10 @@ int bin2decimal(char *from, decimal *to, int precision, int scale)
dec1
x
;
switch
(
i
)
{
case
1
:
x
=
mi_
s
int1korr
(
from
);
break
;
case
2
:
x
=
mi_
s
int2korr
(
from
);
break
;
case
3
:
x
=
mi_
s
int3korr
(
from
);
break
;
case
4
:
x
=
mi_
s
int4korr
(
from
);
break
;
case
1
:
x
=
mi_
u
int1korr
(
from
);
break
;
case
2
:
x
=
mi_
u
int2korr
(
from
);
break
;
case
3
:
x
=
mi_
u
int3korr
(
from
);
break
;
case
4
:
x
=
mi_
u
int4korr
(
from
);
break
;
default:
DBUG_ASSERT
(
0
);
}
*
buf
=
(
x
^
mask
)
*
powers10
[
DIG_PER_DEC1
-
frac0x
];
...
...
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