<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua-cjson/dtoa.c, branch or-1.31.0</title>
<subtitle>A mirror of https://github.com/openresty/lua-cjson
</subtitle>
<id>https://git.lua4.win/lua-cjson/atom?h=or-1.31.0</id>
<link rel='self' href='https://git.lua4.win/lua-cjson/atom?h=or-1.31.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/'/>
<updated>2024-08-01T01:23:44+00:00</updated>
<entry>
<title>doc: add comment for dtoa.c.</title>
<updated>2024-08-01T01:23:44+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2024-06-11T01:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=b0b4c58df8fba8f7ea36c69bbdb517f9732b1bcf'/>
<id>urn:sha1:b0b4c58df8fba8f7ea36c69bbdb517f9732b1bcf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feature: Lua 5.3 + 5.4 integer support, with CI and conflicts fixed.</title>
<updated>2024-06-11T01:39:55+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2024-06-11T01:39:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=c92ecda53337490633c95e6ae00e322dc9ad1fb8'/>
<id>urn:sha1:c92ecda53337490633c95e6ae00e322dc9ad1fb8</id>
<content type='text'>
Co-Authored-By: Hisham Muhammad &lt;hisham@gobolinux.org&gt;
Co-authored-by: Mark Pulford &lt;mark@kyne.com.au&gt;
Co-authored-by: ichenq &lt;ichenq@gmail.com&gt;
Co-authored-by: Cloud Wu &lt;cloudwu@gmail.com&gt;
Co-authored-by: caijietao &lt;t0350.prog@gmail.com&gt;
Co-authored-by: actboy168 &lt;actboy168@gmail.com&gt;
Co-authored-by: wudeng &lt;wudeng256@gmail.com&gt;
Co-authored-by: caiyiheng &lt;rangercyh@qq.com&gt;</content>
</entry>
<entry>
<title>Add updated netlib dtoa.c from https://netlib.sandia.gov/fp/dtoa.c </title>
<updated>2023-02-22T13:34:30+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2023-02-22T13:34:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=41eee7406b0f048392168515b09e7d8bdd000624'/>
<id>urn:sha1:41eee7406b0f048392168515b09e7d8bdd000624</id>
<content type='text'>
Co-authored-by: Jesper Lundgren &lt;jesperlundgren@exosite.com&gt;</content>
</entry>
<entry>
<title>bugfix: fixed bugs suspected by cppcheck: shift signed 32-bit value by 31 bits and uninitialized variable. (#76)</title>
<updated>2021-10-19T10:06:49+00:00</updated>
<author>
<name>Johnny Wang</name>
<email>wangjiahao@openresty.com</email>
</author>
<published>2021-10-19T10:06:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=f416d2675eb36e3dd2d2b3882058233327ea3c07'/>
<id>urn:sha1:f416d2675eb36e3dd2d2b3882058233327ea3c07</id>
<content type='text'>
[dtoa.c:2453] -&gt; [dtoa.c:2454]: (warning) Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 2453.
[dtoa.c:2846]: (error) Uninitialized variable: bb
[dtoa.c:2847]: (error) Uninitialized variable: bd
[dtoa.c:2848]: (error) Uninitialized variable: bs
[dtoa.c:2850]: (error) Uninitialized variable: delta</content>
</entry>
<entry>
<title>Use Javascript compat values for Infinity/NaN</title>
<updated>2012-03-04T09:36:37+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-03-03T00:18:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=d5090bb8f19f4b0fd868a5f9af367ebbb67b7f5a'/>
<id>urn:sha1:d5090bb8f19f4b0fd868a5f9af367ebbb67b7f5a</id>
<content type='text'>
Use Javascript compatible values for Infinity/NaN when encoding invalid
numbers.
</content>
</entry>
<entry>
<title>Use internal dtoa/strtod for double conversion</title>
<updated>2012-03-04T08:24:34+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-12-29T12:33:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=ca42b9a996f9046ba3876ad8a81cda1d935b39cf'/>
<id>urn:sha1:ca42b9a996f9046ba3876ad8a81cda1d935b39cf</id>
<content type='text'>
The internal Lua CJSON dtoa/strtod routines have locale support
disabled. This avoids problems under locales with comma decimal
separators.

Build changes:
- CMake: Check for big endian architectures
- Makefile: Provide option to build with dtoa.c

Modifications to dtoa.c:
- Include locale dtoa_config.h configuration
- Rename Infinity/NaN to inf/nan to match common C libraries
- Rename strtod() -&gt; internal_strtod() to prevent conflict with libc
  function

Modifications to g_fmt.c:
- Return output string length (instead of original buffer pointer)
- Provide precision as an argument to g_fmt()
- Silence compilations warnings from vendor source
  - while(a = b)
  - Unused label "done:"
- Only swap to scientific notation when once the number of decimal
  digits required exceeds the precision available. This matches
  standard printf format %g.
- Display a "0" in front of numbers &lt; 1.
</content>
</entry>
<entry>
<title>Added Netlib dtoa.c/g_fmt.c routines (20110428)</title>
<updated>2011-12-28T21:40:57+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-12-28T21:40:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=23d19ba2551e6f432ada6f7cd5ac3e874b4d35d1'/>
<id>urn:sha1:23d19ba2551e6f432ada6f7cd5ac3e874b4d35d1</id>
<content type='text'>
See "www.netlib.org/fp/changes" for details.
</content>
</entry>
</feed>
