1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-09-30 02:54:41 +00:00

Use double-slash comments

This commit is contained in:
Peter Evans 2017-12-12 14:35:13 -06:00
parent 6f4627802f
commit da62ac4ca6

View File

@ -54,13 +54,11 @@ vm_segment_create(size_t size)
return NULL;
}
/*
* Let's NULL-out the read and write tables. If we don't do so, they
* may have some bits of garbage in it, and could cause the
* read/write mapper code to attempt to a run a function with
* garbage. We could have undefined garbage! We can only properly
* work with defined garbage.
*/
// Let's NULL-out the read and write tables. If we don't do so, they
// may have some bits of garbage in it, and could cause the
// read/write mapper code to attempt to a run a function with
// garbage. We could have undefined garbage! We can only properly
// work with defined garbage.
memset(segment->read_table, (int)NULL, sizeof(vm_segment_read_fn));
memset(segment->write_table, (int)NULL, sizeof(vm_segment_write_fn));