mkfs.mfs: use bitchunk_t (reported by Maurizio Lombardi)
This commit is contained in:
		
							parent
							
								
									53ad9d83b9
								
							
						
					
					
						commit
						8e5cad159f
					
				@ -960,14 +960,14 @@ int bit;
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  /* Insert 'count' bits in the bitmap */
 | 
					  /* Insert 'count' bits in the bitmap */
 | 
				
			||||||
  int w, s;
 | 
					  int w, s;
 | 
				
			||||||
  short *buf;
 | 
					  bitchunk_t *buf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  buf = (short *) alloc_block();
 | 
					  buf = (bitchunk_t *) alloc_block();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (block < 0) pexit("insert_bit called with negative argument");
 | 
					  if (block < 0) pexit("insert_bit called with negative argument");
 | 
				
			||||||
  get_block(block, (char *) buf);
 | 
					  get_block(block, (char *) buf);
 | 
				
			||||||
  w = bit / (8 * sizeof(short));
 | 
					  w = bit / (8 * sizeof(bitchunk_t));
 | 
				
			||||||
  s = bit % (8 * sizeof(short));
 | 
					  s = bit % (8 * sizeof(bitchunk_t));
 | 
				
			||||||
  buf[w] |= (1 << s);
 | 
					  buf[w] |= (1 << s);
 | 
				
			||||||
  put_block(block, (char *) buf);
 | 
					  put_block(block, (char *) buf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user