]> granicus.if.org Git - json-c/commitdiff
Fix the definition of the error_description() macro in bits.h now that json_tokener_e...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 4 May 2014 02:26:26 +0000 (22:26 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 4 May 2014 02:26:26 +0000 (22:26 -0400)
bits.h

diff --git a/bits.h b/bits.h
index c8cbbc820d5b915ef1e7edea437ba091a06ccc28..6feee9e916ef640c627bef2e6e7cdaa052043de3 100644 (file)
--- 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