From 82cf6530c61e2b30180d6309cd0dcf185a4e48fa Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Fri, 5 Dec 2008 23:52:09 -0600 Subject: [PATCH] set-string-nth-fast intrinsic was busted --- basis/cpu/x86/x86.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/cpu/x86/x86.factor b/basis/cpu/x86/x86.factor index d7234eb389..8dac1efed6 100644 --- a/basis/cpu/x86/x86.factor +++ b/basis/cpu/x86/x86.factor @@ -391,7 +391,7 @@ M:: x86 %string-nth ( dst src index temp -- ) ] with-small-register ; M:: x86 %set-string-nth-fast ( ch str index temp -- ) - ch { index str } [| new-ch | + ch { index str temp } [| new-ch | new-ch ch ?MOV temp str index [+] LEA temp string-offset [+] new-ch 1 small-reg MOV