Skip to content

Commit 3ed9e1b

Browse files
committed
add Windows clang badge
1 parent a087ad1 commit 3ed9e1b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# facil.io 0.8.x - The C Server Toolbox Library (C STL)
22

3-
[![POSIX C/C++ CI](https://github.com/facil-io/cstl/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/facil-io/cstl/actions/workflows/c-cpp.yml) [![Windows C/C++ CI](https://github.com/facil-io/cstl/actions/workflows/windows.yml/badge.svg)](https://github.com/facil-io/cstl/actions/workflows/windows.yml)
3+
[![POSIX C/C++ CI](https://github.com/facil-io/cstl/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/facil-io/cstl/actions/workflows/c-cpp.yml) [![Windows C/C++ CI](https://github.com/facil-io/cstl/actions/workflows/windows.yml/badge.svg)](https://github.com/facil-io/cstl/actions/workflows/windows.yml) [![Windows Clang CI](https://github.com/facil-io/cstl/actions/workflows/windows_clang.yml/badge.svg)](https://github.com/facil-io/cstl/actions/workflows/windows_clang.yml)
44

55
> **The [facil.io](http://facil.io) C STL aims to provide C developers with easy-to-use tools to write memory safe and performant programs**.
66

fio-stl.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47146,7 +47146,7 @@ FIO_SFUNC void FIO_NAME_TEST(stl, atol)(void) {
4714647146
double d_; \
4714747147
uint64_t as_i; \
4714847148
} pn, pn1, pn2; \
47149-
pn2.d_ = d; \
47149+
pn2.d_ = (double)d; \
4715047150
char *p = (char *)(s); \
4715147151
char *p1 = (char *)(s); \
4715247152
char *p2 = (char *)(s); \
@@ -47184,10 +47184,10 @@ FIO_SFUNC void FIO_NAME_TEST(stl, atol)(void) {
4718447184
s, \
4718547185
r2, \
4718647186
std); \
47187-
} else if (r == 0.0 && d != 0.0 && !isnan((double)d)) { \
47187+
} else if (r == 0.0 && (double)d != 0.0 && !isnan((double)d)) { \
4718847188
if (FIO_LOG_LEVEL == FIO_LOG_LEVEL_DEBUG) \
4718947189
FIO_LOG_WARNING("float range limit marked before: %s\n", s); \
47190-
} else if (r2 == 0.0 && d != 0.0 && !isnan((double)d)) { \
47190+
} else if (r2 == 0.0 && (double)d != 0.0 && !isnan((double)d)) { \
4719147191
if (FIO_LOG_LEVEL == FIO_LOG_LEVEL_DEBUG) \
4719247192
FIO_LOG_WARNING("aton float range limit marked before: %s\n", s); \
4719347193
} else { \
@@ -47373,7 +47373,7 @@ FIO_SFUNC void FIO_NAME_TEST(stl, atol)(void) {
4737347373
stop = clock();
4737447374
fprintf(stderr,
4737547375
"* fio_atol speed test completed in %zu cycles\n",
47376-
stop - start);
47376+
(size_t)(stop - start));
4737747377
r = 0;
4737847378

4737947379
start = clock();
@@ -47386,7 +47386,7 @@ FIO_SFUNC void FIO_NAME_TEST(stl, atol)(void) {
4738647386
stop = clock();
4738747387
fprintf(stderr,
4738847388
"* system atol speed test completed in %zu cycles\n",
47389-
stop - start);
47389+
(size_t)(stop - start));
4739047390
}
4739147391
#endif /* !DEBUG */
4739247392
}

fio-stl/902 atol.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ FIO_SFUNC void FIO_NAME_TEST(stl, atol)(void) {
552552
double d_; \
553553
uint64_t as_i; \
554554
} pn, pn1, pn2; \
555-
pn2.d_ = d; \
555+
pn2.d_ = (double)d; \
556556
char *p = (char *)(s); \
557557
char *p1 = (char *)(s); \
558558
char *p2 = (char *)(s); \
@@ -590,10 +590,10 @@ FIO_SFUNC void FIO_NAME_TEST(stl, atol)(void) {
590590
s, \
591591
r2, \
592592
std); \
593-
} else if (r == 0.0 && d != 0.0 && !isnan((double)d)) { \
593+
} else if (r == 0.0 && (double)d != 0.0 && !isnan((double)d)) { \
594594
if (FIO_LOG_LEVEL == FIO_LOG_LEVEL_DEBUG) \
595595
FIO_LOG_WARNING("float range limit marked before: %s\n", s); \
596-
} else if (r2 == 0.0 && d != 0.0 && !isnan((double)d)) { \
596+
} else if (r2 == 0.0 && (double)d != 0.0 && !isnan((double)d)) { \
597597
if (FIO_LOG_LEVEL == FIO_LOG_LEVEL_DEBUG) \
598598
FIO_LOG_WARNING("aton float range limit marked before: %s\n", s); \
599599
} else { \
@@ -779,7 +779,7 @@ FIO_SFUNC void FIO_NAME_TEST(stl, atol)(void) {
779779
stop = clock();
780780
fprintf(stderr,
781781
"* fio_atol speed test completed in %zu cycles\n",
782-
stop - start);
782+
(size_t)(stop - start));
783783
r = 0;
784784

785785
start = clock();
@@ -792,7 +792,7 @@ FIO_SFUNC void FIO_NAME_TEST(stl, atol)(void) {
792792
stop = clock();
793793
fprintf(stderr,
794794
"* system atol speed test completed in %zu cycles\n",
795-
stop - start);
795+
(size_t)(stop - start));
796796
}
797797
#endif /* !DEBUG */
798798
}

0 commit comments

Comments
 (0)