fmtlegacy/include/fmt
Orivej Desh b66bb6b71f Fix undefined in core-test and printf-test (#1345)
* Fix undefined in core-test

Fixes "reference binding to null pointer" in BufferTest.Ctor

buffer.operator[] attempts to return a reference to `buffer.ptr_[0]` when `ptr_`
in `mock_buffer<int> buffer` is null.

* Fix undefined in printf-test

Fixes "signed integer overflow" in PrintfTest.Length

This occurs in `TestLength<long long>("ll")`, since its minimum value minus one
does not fit in long long.

* Fix undefined in printf %0$

Printf counts arguments from 1.

Fixes "shift exponent -4 is negative" in PrintfTest.InvalidArgIndex.

`do_get` is called with index -1 when `basic_printf_context.arg` is called with
id 4294967295 when basic_printf_context::get_arg subtracts 1 from arg_index 0 in
the format string "%0$d".
2019-10-08 06:28:39 -07:00
..
chrono.h Add max_value 2019-09-08 09:21:30 -07:00
color.h Fix format overload that takes text_style (#1305) 2019-09-08 18:41:02 -07:00
compile.h fix name clash in header-only mode 2019-09-24 06:25:21 -07:00
core.h Fix handling of types convertible to std::string_view 2019-10-05 06:58:37 -07:00
format-inl.h Implement more bigint operations 2019-10-06 12:49:23 -07:00
format.h Fix a warning (#1319) and simplify code 2019-09-19 16:00:40 -07:00
locale.h Disallow passing views as lvalues 2019-07-09 12:18:48 -07:00
ostream.h Disable integral operator<< (#1316) 2019-09-23 20:34:08 -07:00
posix.h Fix locale detection 2019-07-26 12:13:05 +03:00
printf.h Fix undefined in core-test and printf-test (#1345) 2019-10-08 06:28:39 -07:00
ranges.h Fix ambiguity for types with dodgy conversions 2019-09-28 11:35:20 -07:00
safe-duration-cast.h workaround VS2019 Update 3 compiler bug. (#1328) 2019-09-24 11:29:29 -07:00