mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	pm_randon.h: fix conversion warning (int to float)
This commit is contained in:
		
							parent
							
								
									e8345c9241
								
							
						
					
					
						commit
						9f5021a81f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -72,7 +72,7 @@ public:
 | 
			
		|||
      v_new_seed = ( test > 0 ) ? test : test + 2147483647;
 | 
			
		||||
      return tmp;
 | 
			
		||||
   }; 
 | 
			
		||||
   float rand_01() { return float(rand()) / 2147483647; };
 | 
			
		||||
   float rand_01() { return float(rand()) / 2147483647.0; };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue