Merge pull request #1826 from eehrich/master

Reviewed compiler warnings: fixed some bugs and formal stuff. (2nd try)
This commit is contained in:
Juan Linietsky 2015-05-07 20:02:54 -03:00
commit c99813dc38
23 changed files with 50 additions and 45 deletions

View file

@ -1850,7 +1850,7 @@ void ResourceFormatSaverXMLInstance::escape(String& p_str) {
p_str=p_str.replace(">","<");
p_str=p_str.replace("'","'");
p_str=p_str.replace("\"",""");
for (int i=1;i<32;i++) {
for (char i=1;i<32;i++) {
char chr[2]={i,0};
const char hexn[16]={'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};

View file

@ -36,8 +36,9 @@ uint32_t Math::default_seed=1;
#define PHI 0x9e3779b9
static uint32_t Q[4096], c = 362436;
#if 0
static uint32_t Q[4096];
#endif
uint32_t Math::rand_from_seed(uint32_t *seed) {
@ -269,7 +270,7 @@ bool Math::is_inf(double p_val) {
uint32_t Math::larger_prime(uint32_t p_val) {
static const int primes[] = {
static const uint32_t primes[] = {
5,
13,
23,