summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-09-25 11:59:38 +0800
committerGitHub <[email protected]>2018-09-25 11:59:38 +0800
commitb013a4baa77ab4bf7dcde6c35817bd38223b8aa8 (patch)
tree510da1e45746ad868c15ecff990b91ec01bb5afb /components
parente877460a532ac94031790096106fee9e47b7fcc9 (diff)
parentd96027f156ad658d67a088b3ca47475c2686873f (diff)
Merge pull request #1842 from RT-Thread/fix_fpu
Fix fpu
Diffstat (limited to 'components')
-rw-r--r--components/libc/compilers/armlibc/stubs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c
index 83306a258d..dbb60c8a44 100644
--- a/components/libc/compilers/armlibc/stubs.c
+++ b/components/libc/compilers/armlibc/stubs.c
@@ -315,7 +315,7 @@ int fputc(int c, FILE *f)
{
char ch[2] = {0};
- ch[1] = c;
+ ch[0] = c;
rt_kprintf(&ch[0]);
return 1;
}