projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98a12a8
)
forget reformat the code so it look nice in editor
author
Magnus Olsen
<magnus@greatlord.com>
Sun, 18 Dec 2005 17:53:33 +0000
(17:53 +0000)
committer
Magnus Olsen
<magnus@greatlord.com>
Sun, 18 Dec 2005 17:53:33 +0000
(17:53 +0000)
svn path=/trunk/; revision=20250
reactos/subsys/system/calc/winecalc.c
patch
|
blob
|
history
diff --git
a/reactos/subsys/system/calc/winecalc.c
b/reactos/subsys/system/calc/winecalc.c
index
add5cc9
..
0b79875
100644
(file)
--- a/
reactos/subsys/system/calc/winecalc.c
+++ b/
reactos/subsys/system/calc/winecalc.c
@@
-3060,16
+3060,16
@@
void calc_buffer_display(CALC *calc) {
if (old_base != calc->numBase)
{
- if (calc->buffer[0]==_T('\0'))
- {
- real = 0;
- }
- else
- {
- real = calc_atof(calc->buffer, old_base);
- }
- _stprintf(calc->display, _T("%.f"), real);
- _stprintf(calc->buffer, _T("%.f"), real);
+
if (calc->buffer[0]==_T('\0'))
+
{
+
real = 0;
+
}
+
else
+
{
+
real = calc_atof(calc->buffer, old_base);
+
}
+
_stprintf(calc->display, _T("%.f"), real);
+
_stprintf(calc->buffer, _T("%.f"), real);
}
_tcscpy(s,calc->buffer);