summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2014-05-03 22:26:26 -0400
committerEric Haszlakiewicz <erh+git@nimenees.com>2014-05-03 22:26:26 -0400
commit1da0599e0ebd60a5038c0a43345fdb249a5a3ea3 (patch)
treeea44029d305516912dbaf6990df9d56af857fd2f
parent2149a04ca82dfa7568e010b875409c56cb7e6e55 (diff)
Fix the definition of the error_description() macro in bits.h now that json_tokener_errors[] is not exported.
-rw-r--r--bits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bits.h b/bits.h
index c8cbbc8..6feee9e 100644
--- a/bits.h
+++ b/bits.h
@@ -22,7 +22,7 @@
#define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
#define error_ptr(error) ((void*)error)
-#define error_description(error) (json_tokener_errors[error])
+#define error_description(error) (json_tokener_get_error(error))
#define is_error(ptr) (ptr == NULL)
#endif