We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d77d3 commit b8cfd4fCopy full SHA for b8cfd4f
compiler/src/dmd/root/array.d
@@ -213,22 +213,20 @@ public:
213
214
debug (stomp)
215
{
216
- if (data.ptr && data.ptr != &smallarray[0])
+ if (data.ptr)
217
218
if (length < data.length)
219
- memset(data.ptr + length, 0xFF,
220
- (data.length - length) * T.sizeof);
+ memset(data.ptr + length, 0xFF, (data.length - length) * T.sizeof);
221
}
222
223
else
224
225
if (mem.isGCEnabled)
226
227
228
229
230
231
232
233
234
0 commit comments