Merge pull request #2474 from Skgland/fix-looping-memory-allocation
Fix looping memory allocation
This commit is contained in:
@@ -174,7 +174,9 @@ impl Stack {
|
||||
let ptr = self.buf.alloc(frame_size);
|
||||
|
||||
if ptr.is_null() {
|
||||
self.buf.grow();
|
||||
if !self.buf.grow() {
|
||||
panic!("growing the stack failed")
|
||||
}
|
||||
} else {
|
||||
return ptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user