File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1247,7 +1247,8 @@ namespace loguru
1247
1247
if (out_buff_size == 0 ) { return ; }
1248
1248
out_buff[0 ] = ' \0 ' ;
1249
1249
size_t pos = 0 ;
1250
- if (g_preamble_date && pos < out_buff_size) {
1250
+ assert (pos < out_buff_size);
1251
+ if (g_preamble_date) {
1251
1252
int bytes = snprintf (out_buff + pos, out_buff_size - pos, " date " );
1252
1253
if (bytes > 0 ) {
1253
1254
pos += bytes;
@@ -1324,8 +1325,8 @@ namespace loguru
1324
1325
}
1325
1326
1326
1327
size_t pos = 0 ;
1327
-
1328
- if (g_preamble_date && pos < out_buff_size ) {
1328
+ assert (pos < out_buff_size);
1329
+ if (g_preamble_date) {
1329
1330
int bytes = snprintf (out_buff + pos, out_buff_size - pos, " %04d-%02d-%02d " ,
1330
1331
1900 + time_info.tm_year , 1 + time_info.tm_mon , time_info.tm_mday );
1331
1332
if (bytes > 0 ) {
You can’t perform that action at this time.
0 commit comments