integer_overflow_with_gcc.diff

kishan, 01/10/2009 07:13 pm

Download (634 Bytes)

nel/src/misc/eval_num_expr.cpp (copie de travail)
722 722
										value = pow (arg0, arg1);
723 723
										break;
724 724
									case Rand:
725
										value = arg0 + (arg1-arg0) * (double)rand () / (double)(RAND_MAX+1);
725
										value = arg0 + (arg1-arg0) * (double)rand () / (double)(RAND_MAX)+1.;
726 726
										break;
727 727
									default:
728
										// Can't be hear after getToken
728
										// Can't be here after getToken
729 729
										nlstop;
730 730
									}
731 731
								}