Author: mir3x
Date: Sun Feb  5 16:38:18 2017
New Revision: 34967

URL: http://svn.gna.org/viewcvs/freeciv?rev=34967&view=rev
Log:
Fixed hidden int promotion in pf_pos_hash_val(...)

See gna bug #25449


Modified:
    trunk/common/aicore/path_finding.c

Modified: trunk/common/aicore/path_finding.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/aicore/path_finding.c?rev=34967&r1=34966&r2=34967&view=diff
==============================================================================
--- trunk/common/aicore/path_finding.c  (original)
+++ trunk/common/aicore/path_finding.c  Sun Feb  5 16:38:18 2017
@@ -3556,7 +3556,7 @@
   for (i = 0, b = sizeof(result) * 8 - 1; i < signifiant_flags_num;
        i++, b--) {
     if (utype_has_flag(parameter->utype, signifiant_flags[i])) {
-      result |= (1 << b);
+      result |= (1u << b);
     }
   }
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to