fix in compile time int2float conversion
This commit is contained in:
		
							parent
							
								
									cc55ab947d
								
							
						
					
					
						commit
						5e14dddb6c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -282,7 +282,7 @@ int2float(expp, tp) | ||||||
| 		exp = *expp; | 		exp = *expp; | ||||||
| 		exp->ex_type = tp; | 		exp->ex_type = tp; | ||||||
| 		exp->ex_class = Float; | 		exp->ex_class = Float; | ||||||
| 		exp->FL_VALUE = Salloc(buf, (unsigned)strlen(buf)+1) + 1; | 		exp->FL_VALUE = Salloc(buf, (unsigned)strlen(buf)+2) + 1; | ||||||
| 		exp->FL_DATLAB = 0; | 		exp->FL_DATLAB = 0; | ||||||
| 	} | 	} | ||||||
| 	else	*expp = arith2arith(tp, INT2FLOAT, *expp); | 	else	*expp = arith2arith(tp, INT2FLOAT, *expp); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue