Fossil

Check-in [6bcfe1d2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fixed another strict aliasing warning in cson.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6bcfe1d22c13281a33468484dffc996e85c4b4c2
User & Date: stephan 2016-06-18 11:29:26
Context
2016-06-19
18:49
Add the "chng=" query parameter to the "/timeline" page. check-in: b2b62b83 user: drh tags: trunk
2016-06-18
14:44
Juggle variables and code arround, making it as efficient and readable as possible. Also add more comments. check-in: 7f067f29 user: jan.nijtmans tags: invalid_utf8_improvements
11:29
fixed another strict aliasing warning in cson. check-in: 6bcfe1d2 user: stephan tags: trunk
2016-06-17
12:38
Fix a typo in the built-in documentation for the "tarball" command. check-in: e0da91e9 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/cson_amalgamation.c.

2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
{
    if( 0.0 == v ) return &CSON_SPECIAL_VALUES[CSON_VAL_DBL_0];
    else
    {
        cson_value * c = cson_value_new(CSON_TYPE_DOUBLE,0);
        if( c )
        {
            *CSON_DBL(c) = v;
        }
        return c;
    }
}

cson_string * cson_new_string(char const * str, unsigned int len)
{







|







2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
{
    if( 0.0 == v ) return &CSON_SPECIAL_VALUES[CSON_VAL_DBL_0];
    else
    {
        cson_value * c = cson_value_new(CSON_TYPE_DOUBLE,0);
        if( c )
        {
            memcpy(CSON_DBL(c), &v, sizeof(v));
        }
        return c;
    }
}

cson_string * cson_new_string(char const * str, unsigned int len)
{