mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2026-02-19 14:46:28 +00:00
fix: floating point conversion on x86 (32bit)
This commit is contained in:
committed by
Jesse Beder
parent
80ea0028c7
commit
ebb85dd462
@@ -28,7 +28,7 @@ namespace fp_formatting {
|
|||||||
* assert(buffer[1] == '2');
|
* assert(buffer[1] == '2');
|
||||||
* assert(buffer[2] == '3');
|
* assert(buffer[2] == '3');
|
||||||
*/
|
*/
|
||||||
int ConvertToChars(char* begin, char* end, size_t value, int width=1) {
|
int ConvertToChars(char* begin, char* end, uint64_t value, int width=1) {
|
||||||
// precondition of this function (will trigger in debug build)
|
// precondition of this function (will trigger in debug build)
|
||||||
assert(width >= 1);
|
assert(width >= 1);
|
||||||
assert(end >= begin); // end must be after begin
|
assert(end >= begin); // end must be after begin
|
||||||
|
|||||||
Reference in New Issue
Block a user