forked from bartvdbraak/blender
Cycles: Fix corner case of human readable number returning empty string
This commit is contained in:
parent
f1253f5d2b
commit
4a641e3cbc
@ -260,7 +260,11 @@ string string_human_readable_size(size_t size)
|
||||
|
||||
string string_human_readable_number(size_t num)
|
||||
{
|
||||
/* add thousands separators */
|
||||
if(num == 0) {
|
||||
return "0";
|
||||
}
|
||||
|
||||
/* Add thousands separators. */
|
||||
char buf[32];
|
||||
|
||||
char* p = buf+31;
|
||||
|
Loading…
Reference in New Issue
Block a user