summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));