Compare commits
2 Commits
4d841787fc
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 34bc322b9b | |||
| 6c3c763934 |
@@ -6,7 +6,7 @@ endif()
|
||||
project(PIP)
|
||||
set(PIP_MAJOR 5)
|
||||
set(PIP_MINOR 5)
|
||||
set(PIP_REVISION 2)
|
||||
set(PIP_REVISION 3)
|
||||
set(PIP_SUFFIX )
|
||||
set(PIP_COMPANY SHS)
|
||||
set(PIP_DOMAIN org.SHS)
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# include <unistd.h>
|
||||
#else
|
||||
// clang-format off
|
||||
# undef _WIN32_WINNT
|
||||
# define _WIN32_WINNT 0x0600
|
||||
# include <windows.h>
|
||||
# include <setupapi.h>
|
||||
extern "C" {
|
||||
|
||||
@@ -206,7 +206,10 @@ PIString PIString::dtos(const double num, char format, int precision) {
|
||||
if (wr > 4) wr = 4;
|
||||
f[2 + wr] = format;
|
||||
f[3 + wr] = 0;
|
||||
pisprintf(f, num);
|
||||
char ch[256];
|
||||
piZeroMemory(ch, 256);
|
||||
snprintf(ch, 256, f, num);
|
||||
return PIStringAscii(ch).replaceAll(',', '.');
|
||||
}
|
||||
#undef pisprintf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user