Author: mir3x
Date: Sun Feb  5 16:38:10 2017
New Revision: 34966

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

See gna bug #25449


Modified:
    branches/S3_0/common/aicore/path_finding.c

Modified: branches/S3_0/common/aicore/path_finding.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/common/aicore/path_finding.c?rev=34966&r1=34965&r2=34966&view=diff
==============================================================================
--- branches/S3_0/common/aicore/path_finding.c  (original)
+++ branches/S3_0/common/aicore/path_finding.c  Sun Feb  5 16:38:10 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