committed by
Bennet Bleßmann
parent
775b14c537
commit
cc51b8150d
@@ -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