Skip to content
This repository has been archived by the owner on Feb 25, 2018. It is now read-only.

Commit

Permalink
fix returncode of tns_outbuf_itoa
Browse files Browse the repository at this point in the history
  • Loading branch information
rfk committed Mar 23, 2011
1 parent e584702 commit 138f02d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions README.rst
Expand Up @@ -6,7 +6,7 @@ tnetstring: data serialization using typed netstrings

This is a data serialization library. It's a lot like JSON but it uses a
new syntax called "typed netstrings" that Zed has proposed for use in the
Mongrel2 webserver. It's designed to be simpler and easier to implement
the Mongrel2 webserver. It's designed to be simpler and easier to implement

This comment has been minimized.

Copy link
@Tordek

Tordek Mar 23, 2011

Oops.

than JSON, with a happy consequence of also being faster.

An ordinary netstring is a blob of data prefixed with its length and postfixed
Expand All @@ -23,9 +23,6 @@ And here's a list mixing integers and bools::

19:5:12345#4:true!1:0#]

Also, since the ``,`` type tag represents a string, every valid netstring is a
valid typed netstring!

Simple enough? This module gives you the following functions:

:dumps: dump an object as a tnetstring to a string
Expand Down
1 change: 1 addition & 0 deletions tnetstring/tns_core.c
Expand Up @@ -400,6 +400,7 @@ tns_outbuf_itoa(size_t n, tns_outbuf *outbuf)
}
n = n / 10;
} while(n > 0);
return 0;
}


Expand Down

0 comments on commit 138f02d

Please sign in to comment.