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
44ad7495
Commit
44ad7495
authored
May 07, 2005
by
holyfoot@hf-ibm.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug #9527 (negative zero is a nonsence)
parent
46cf8b5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
strings/decimal.c
strings/decimal.c
+11
-0
No files found.
strings/decimal.c
View file @
44ad7495
...
...
@@ -1924,6 +1924,17 @@ int decimal_mul(decimal_t *from1, decimal_t *from2, decimal_t *to)
for
(;
carry
;
buf0
--
)
ADD
(
*
buf0
,
*
buf0
,
0
,
carry
);
}
/* Now we have to check for -0.000 case */
if
(
to
->
sign
)
{
dec1
*
buf
=
to
->
buf
;
dec1
*
end
=
to
->
buf
+
intg0
+
frac0
;
for
(;
(
buf
<
end
)
&&
!*
buf
;
buf
++
);
if
(
buf
==
end
)
/* So we got decimal zero */
decimal_make_zero
(
to
);
}
return
error
;
}
...
...
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