mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 08:42:40 +01:00 
			
		
		
		
	- Shifting signed 32-bit value by 31 bits is undefined behaviour
  This was an interesting one as on initial inspection, `uint8_t & 1`
  looks like it will result in an unsigned variable. However, due to
  uint8_t being "smaller" than int, this actually results in a signed
  int, causing an undefined shift operation.
- Identical inner 'if' condition is always true (outer condition is
  'true' and inner condition is 'true').
  This was caused by the use of `if (true) {` to avoid "goto bypasses
  variable initialization" warnings. Using just `{` instead seems to
  avoid this problem.
found by keck-in-space and armandas
		
	
		
			
				
	
	
	
		
			129 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			129 KiB