Answers for "error: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-werror=alloc-size-larger-than=]"

C
0

error: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-werror=alloc-size-larger-than=]

In case you are encountering a calloc error regarding its range, usually cast the given size to anything unsigned, and it should do the trick.
Posted by: Guest on December-15-2020

Code answers related to "error: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-werror=alloc-size-larger-than=]"

Code answers related to "C"

Browse Popular Code Answers by Language