OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
830240d
)
StdAfx.h: Reduce compiler warnings
author
sdottaka
<sdottaka@users.sourceforge.net>
Fri, 28 Nov 2014 10:24:53 +0000
(19:24 +0900)
committer
sdottaka
<sdottaka@users.sourceforge.net>
Fri, 28 Nov 2014 10:24:53 +0000
(19:24 +0900)
--HG--
branch : stable
Src/StdAfx.h
patch
|
blob
|
history
diff --git
a/Src/StdAfx.h
b/Src/StdAfx.h
index
f8a38f9
..
033a4c2
100644
(file)
--- a/
Src/StdAfx.h
+++ b/
Src/StdAfx.h
@@
-133,7
+133,7
@@
public:
~CWinMergeProfile() {
QueryPerformanceCounter(&li[1]);
TCHAR buf[256];
-
_stprintf(buf, _T("funcname=%s t=%g\n"), funcname, (double)(li[1].QuadPart-li[0].QuadPart)/freq.QuadPart
);
+
wsprintf(buf, _T("funcname=%s t=%d[us]\n"), funcname, (int)((double)(li[1].QuadPart-li[0].QuadPart)/freq.QuadPart*1000.0*1000.0)
);
OutputDebugString(buf);
}
};