summaryrefslogtreecommitdiff
path: root/namegen.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-20 12:09:32 +0000
committertruelight <truelight@openttd.org>2006-08-20 12:09:32 +0000
commit5fb6c9e1cc073ad96d62efc423e87d79d38d435a (patch)
tree8ea819b5d596c612f5f825b3e4881663c4af5722 /namegen.c
parentb83703b215bec2b7a6147a6b4a7ec60832da5230 (diff)
downloadopenttd-5fb6c9e1cc073ad96d62efc423e87d79d38d435a.tar.xz
(svn r5974) -Codechange: added casts all around the place to make Windows 64bit happy (michi_cc)
Diffstat (limited to 'namegen.c')
-rw-r--r--namegen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/namegen.c b/namegen.c
index 44e347452..92c471d1c 100644
--- a/namegen.c
+++ b/namegen.c
@@ -475,7 +475,7 @@ static byte MakeCzechTownName(char *buf, uint32 seed)
if (do_prefix) {
CzechPattern pattern = name_czech_adj[prefix].pattern;
- int endpos;
+ size_t endpos;
strcat(buf, name_czech_adj[prefix].name);
endpos = strlen(buf) - 1;
@@ -496,7 +496,7 @@ static byte MakeCzechTownName(char *buf, uint32 seed)
if (postfix < lengthof(name_czech_subst_postfix)) {
const char *poststr = name_czech_subst_postfix[postfix];
const char *endstr = name_czech_subst_ending[ending].name;
- int postlen, endlen;
+ size_t postlen, endlen;
postlen = strlen(poststr);
endlen = strlen(endstr);
@@ -507,7 +507,7 @@ static byte MakeCzechTownName(char *buf, uint32 seed)
(poststr[1] != 'v' || poststr[1] != endstr[1]) &&
poststr[2] != endstr[1])
) {
- uint buflen;
+ size_t buflen;
strcat(buf, poststr);
buflen = strlen(buf);