Skip to content
Snippets Groups Projects
Commit d9a352b8 authored by Kostyantyn Vorobyov's avatar Kostyantyn Vorobyov
Browse files

A few indentation issues in C code

parent 7053412d
No related branches found
No related tags found
No related merge requests found
......@@ -384,14 +384,14 @@ void __out_of_bound(void* ptr, _Bool flag) {
void __print_block (struct _block * ptr) {
if (ptr != NULL) {
printf("%p; %zu Bytes; %slitteral; [init] : %li ",
(char*)ptr->ptr, ptr->size,
ptr->is_litteral_string ? "" : "not ", ptr->init_cpt);
(char*)ptr->ptr, ptr->size,
ptr->is_litteral_string ? "" : "not ", ptr->init_cpt);
if(ptr->init_ptr != NULL) {
unsigned i;
for(i = 0; i < ptr->size; i++) {
int ind = i / 8;
int one_bit = (unsigned)1 << (8 - (i % 8) - 1);
printf("%i", (ptr->init_ptr[ind] & one_bit) != 0);
int ind = i / 8;
int one_bit = (unsigned)1 << (8 - (i % 8) - 1);
printf("%i", (ptr->init_ptr[ind] & one_bit) != 0);
}
}
printf("\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment