diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-06 14:29:54 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-06 14:31:33 -0700 |
commit | ee9ed5f58ca1390617595b3b22eb574fdd67a788 (patch) | |
tree | 56ba1da08e3c9712435ee0194af38ad56e32c35a /ext/unicorn_http/c_util.h | |
parent | 5d2f50294ddc0a6689ef5c30cc890f008a6ee173 (diff) | |
download | unicorn-ee9ed5f58ca1390617595b3b22eb574fdd67a788.tar.gz |
This makes it easier for bug reporters to tell us what's wrong in case line numbers change.
Diffstat (limited to 'ext/unicorn_http/c_util.h')
-rw-r--r-- | ext/unicorn_http/c_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/unicorn_http/c_util.h b/ext/unicorn_http/c_util.h index 04fd05d..0ab9b31 100644 --- a/ext/unicorn_http/c_util.h +++ b/ext/unicorn_http/c_util.h @@ -56,7 +56,7 @@ static int hexchar2int(int xdigit) return xdigit - 'a' + 10; /* Ragel already does runtime range checking for us in Unicorn: */ - assert(xdigit >= '0' && xdigit <= '9'); + assert(xdigit >= '0' && xdigit <= '9' && "invalid digit character"); return xdigit - '0'; } |