Showing the changes to codec/encoder/core/src/utils.cpp (1 of 2 files). Show all
Unified · Split
| @@ -157,7 +157,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 156 unmodified lines | ||
| 157 | 157 | #endif//_MSC_VER |
| 158 | 158 | #else//__GNUC__ |
| 159 | 159 | struct tm* t_now; |
| 160 | −#endif//WIN32 | |
| 160 | +#endif//WIN32 | |
| 161 | 161 | |
| 162 | 162 | #if defined( WIN32 ) |
| 163 | 163 | struct _timeb tb; |
| @@ -172,7 +172,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 8 unmodified lines | ||
| 172 | 172 | return; |
| 173 | 173 | } |
| 174 | 174 | #endif//_MSC_VER >= 1500 |
| 175 | −#endif//_MSC_VER | |
| 175 | +#endif//_MSC_VER | |
| 176 | 176 | FTIME (&tb); |
| 177 | 177 | #elif defined( __GNUC__ ) |
| 178 | 178 | struct timeval tv; |
| @@ -252,7 +252,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 73 unmodified lines | ||
| 252 | 252 | #endif//_MSC_VER >= 1500 |
| 253 | 253 | #endif//_MSC_VER |
| 254 | 254 | #elif defined (__GNUC__) |
| 255 | − iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", tv.tv_usec / 1000); // confirmed_safe_unsafe_usage | |
| 255 | + iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", (unsigned int) (tv.tv_usec / 1000)); // confirmed_safe_unsafe_usage | |
| 256 | 256 | #endif//WIN32 |
| 257 | 257 | if (iCurUsed >= 0) { |
| 258 | 258 | iBufUsed += iCurUsed; |