summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 18:36:33 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 18:36:33 +0800
commit8999cf9ce4f31a052952545a8ca6ad94b355a6b8 (patch)
tree578bbfc9a66bd65059b0b156e016f3665607ab7e
parent3a0e713966abc5096a05d4294cc71a15bd71233c (diff)
downloadpttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.gz
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.bz2
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.lz
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.xz
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.zst
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.zip
fix type
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2424 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/merge.c8
-rw-r--r--mbbsd/syspost.c3
2 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/merge.c b/mbbsd/merge.c
index 2f45314a..7694f4a6 100644
--- a/mbbsd/merge.c
+++ b/mbbsd/merge.c
@@ -90,10 +90,10 @@ m_sob()
"您的沙灘鸚鵡螺 %10d 換算成 Ptt 幣為 %9d (匯率 22:1), \n"
" 沙灘貝殼有 %10d 換算為 Ptt 幣為 %9d (匯率 222105:1), \n"
" 原有P幣 %10d 匯入後共有 %d\n",
- man.goldmoney, man.goldmoney/22,
- man.silvermoney, man.silvermoney/222105,
- cuser.money, cuser.money + man.goldmoney/22 +
- man.silvermoney/222105);
+ (int)man.goldmoney, (int)man.goldmoney/22,
+ (int)man.silvermoney, (int)man.silvermoney/222105,
+ cuser.money,
+ (int)(cuser.money + man.goldmoney/22 + man.silvermoney/222105));
demoney(man.goldmoney/22 + man.silvermoney/222105 );
strcat(msg, buf);
#endif
diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c
index 1070e7c9..100e067f 100644
--- a/mbbsd/syspost.c
+++ b/mbbsd/syspost.c
@@ -134,7 +134,8 @@ post_violatelaw(char *crime, char *police, char *reason, char *result)
crime, ctime(&now), police, crime, reason, result);
fclose(fp);
snprintf(fhdr.title, sizeof(fhdr.title),
- "[報告] %s:%-*s 判決", crime, 37-strlen(reason)-strlen(crime), reason);
+ "[報告] %s:%-*s 判決", crime,
+ (int)(37 - strlen(reason) - strlen(crime)), reason);
strlcpy(fhdr.owner, "[Ptt法院]", sizeof(fhdr.owner));
append_record("boards/V/ViolateLaw/.DIR", &fhdr, sizeof(fhdr));