Skip to content

Commit

Permalink
bugfix: made operator new able to allocate >= 4 GiB; this fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Szabo committed Feb 27, 2018
1 parent 22bb390 commit b18d7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_lgcc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extern "C" void __pure_virtual(); void __pure_virtual() { abort(); }
* works for g++-4.2.1 and g++-4.4.1 as well
* removed dependency on stdio, so we get more reliable OOM reporting
*/
static void* emulate_cc_new(unsigned len) { \
static void* emulate_cc_new(size_t len) { \
void *p = malloc(len);
if (p == 0) {
/* Don't use stdio (e.g. fputs), because that may want to allocate more
Expand Down

0 comments on commit b18d7b7

Please sign in to comment.