mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Use unsigned char to store devicesettings.
C++-11 complains allot about narrowing the int value to unsigned char in the setting of these values to the OSTC3. This clears that warning, and any confusion about these values. Future work: Change these structures to use our "Subsurface"-types instead. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									f3484d1148
								
							
						
					
					
						commit
						eb485f8313
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		|  | @ -6,15 +6,15 @@ | ||||||
| #include "libdivecomputer.h" | #include "libdivecomputer.h" | ||||||
| 
 | 
 | ||||||
| struct gas { | struct gas { | ||||||
| 	int oxygen; | 	unsigned char oxygen; | ||||||
| 	int helium; | 	unsigned char helium; | ||||||
| 	int type; | 	unsigned char type; | ||||||
| 	int depth; | 	unsigned char depth; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| struct setpoint { | struct setpoint { | ||||||
| 	int sp; | 	unsigned char sp; | ||||||
| 	int depth; | 	unsigned char depth; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| class DeviceDetails : public QObject | class DeviceDetails : public QObject | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue