projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add TODOs.
[pintos-anon]
/
src
/
threads
/
malloc.c
diff --git
a/src/threads/malloc.c
b/src/threads/malloc.c
index 0cb5f9d997def46ce1570b40eb5d9e1195216f3c..8e6b4591ea87ecae09337ae5d741c89a68bdcb9a 100644
(file)
--- a/
src/threads/malloc.c
+++ b/
src/threads/malloc.c
@@
-161,7
+161,7
@@
calloc (size_t a, size_t b)
void *p;
size_t size;
void *p;
size_t size;
- /* Calculate block size. */
+ /* Calculate block size
and make sure it fits in size_t
. */
size = a * b;
if (size < a || size < b)
return NULL;
size = a * b;
if (size < a || size < b)
return NULL;