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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
16c5f3c5
Commit
16c5f3c5
authored
Nov 02, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allocate temp array big enough for not to worry about bound checking in look-aheads
parent
e64d290b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
strings/decimal.c
strings/decimal.c
+1
-0
No files found.
strings/decimal.c
View file @
16c5f3c5
...
@@ -1362,6 +1362,7 @@ static int do_div_mod(decimal *from1, decimal *from2,
...
@@ -1362,6 +1362,7 @@ static int do_div_mod(decimal *from1, decimal *from2,
*
buf0
++=
0
;
*
buf0
++=
0
;
len1
=
(
i
=
ROUND_UP
(
prec1
))
+
ROUND_UP
(
2
*
frac2
+
scale_incr
+
1
);
len1
=
(
i
=
ROUND_UP
(
prec1
))
+
ROUND_UP
(
2
*
frac2
+
scale_incr
+
1
);
set_if_bigger
(
len1
,
3
);
if
(
!
(
tmp1
=
my_alloca
(
len1
*
sizeof
(
dec1
))))
if
(
!
(
tmp1
=
my_alloca
(
len1
*
sizeof
(
dec1
))))
return
E_DEC_OOM
;
return
E_DEC_OOM
;
memcpy
(
tmp1
,
buf1
,
i
*
sizeof
(
dec1
));
memcpy
(
tmp1
,
buf1
,
i
*
sizeof
(
dec1
));
...
...
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