Fix MSVC build.

This commit is contained in:
Mike Pall 2013-04-26 10:38:24 +02:00
parent bdaf14b2c1
commit 5fd659f859
2 changed files with 3 additions and 3 deletions

View File

@ -628,7 +628,7 @@ LJFOLDF(bufput_kfold_op)
SBuf *sb = &J2G(J)->tmpbuf; SBuf *sb = &J2G(J)->tmpbuf;
setsbufL(sb, J->L); setsbufL(sb, J->L);
lj_buf_reset(sb); lj_buf_reset(sb);
sb = ((SBuf * LJ_FASTCALL (*)(SBuf *, GCstr *))ci->func)(sb, sb = ((SBuf * (LJ_FASTCALL *)(SBuf *, GCstr *))ci->func)(sb,
ir_kstr(IR(fleft->op2))); ir_kstr(IR(fleft->op2)));
fins->op2 = lj_ir_kstr(J, lj_buf_tostr(sb)); fins->op2 = lj_ir_kstr(J, lj_buf_tostr(sb));
fins->op1 = fleft->op1; fins->op1 = fleft->op1;

View File

@ -2387,9 +2387,9 @@ static void build_subroutines(BuildCtx *ctx)
| mov SBUF:FCARG1->L, L:RB | mov SBUF:FCARG1->L, L:RB
| mov SBUF:FCARG1->p, RC | mov SBUF:FCARG1->p, RC
| mov SAVE_PC, PC | mov SAVE_PC, PC
| call extern lj_buf_putstr_ .. name | call extern lj_buf_putstr_ .. name .. @8
| mov FCARG1, eax | mov FCARG1, eax
| call extern lj_buf_tostr | call extern lj_buf_tostr@4
| jmp ->fff_resstr | jmp ->fff_resstr
|.endmacro |.endmacro
| |