[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clearing a static array - seg fault
[Thread Prev] | [Thread Next]
- Subject: Re: Clearing a static array - seg fault
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Sun, 26 Jan 2025 21:50:48 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 26/01/2025 à 20:12, Brian G a écrit :
Should clearing a static array in a structure behave the same as a dynamic multi dimensional array and set all values to zero.Right now it just segfaults. As the structure is not in normal variable space, but fill(0) works fine.Perhaps clear should call fill(0) in case of static arrays.
It's fixed in the last commit. The array contents is now emptied. Regards, -- Benoît Minisini.
Re: Clearing a static array - seg fault | brian <brian@xxxxxxxxxxxxxxxx> |
Clearing a static array - seg fault | Brian G <brian@xxxxxxxxxxxxxxxx> |