Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7b544ca0
Commit
7b544ca0
authored
Apr 10, 2012
by
Stefan Krah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stale comment.
parent
61d85bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Modules/_decimal/libmpdec/mpdecimal.c
Modules/_decimal/libmpdec/mpdecimal.c
+4
-3
No files found.
Modules/_decimal/libmpdec/mpdecimal.c
View file @
7b544ca0
...
@@ -458,6 +458,9 @@ mpd_del(mpd_t *dec)
...
@@ -458,6 +458,9 @@ mpd_del(mpd_t *dec)
* 1) MPD_MINALLOC <= result->alloc.
* 1) MPD_MINALLOC <= result->alloc.
* 2) 0 <= result->len <= result->alloc.
* 2) 0 <= result->len <= result->alloc.
*
*
* Case nwords == result->alloc:
* 'result' is unchanged. Return 1.
*
* Case nwords > result->alloc:
* Case nwords > result->alloc:
* Case realloc success:
* Case realloc success:
* The value of 'result' does not change. Return 1.
* The value of 'result' does not change. Return 1.
...
@@ -465,13 +468,11 @@ mpd_del(mpd_t *dec)
...
@@ -465,13 +468,11 @@ mpd_del(mpd_t *dec)
* 'result' is NaN, status is updated with MPD_Malloc_error. Return 0.
* 'result' is NaN, status is updated with MPD_Malloc_error. Return 0.
*
*
* Case nwords < result->alloc:
* Case nwords < result->alloc:
* Case is_static_data or
nwords < MPD_MINALLOC or
realloc failure [1]:
* Case is_static_data or realloc failure [1]:
* 'result' is unchanged. Return 1.
* 'result' is unchanged. Return 1.
* Case realloc success:
* Case realloc success:
* The value of result is undefined (expected). Return 1.
* The value of result is undefined (expected). Return 1.
*
*
* Case nwords == result->alloc:
* 'result' is unchanged. Return 1.
*
*
* [1] In that case the old (now oversized) area is still valid.
* [1] In that case the old (now oversized) area is still valid.
*/
*/
...
...
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