Use NDN_ERROR_success instead of (ndn_Error)0
diff --git a/ndn-cpp/c/util/dynamic-uchar-array.h b/ndn-cpp/c/util/dynamic-uchar-array.h
index d8d0d23..71b6a2e 100644
--- a/ndn-cpp/c/util/dynamic-uchar-array.h
+++ b/ndn-cpp/c/util/dynamic-uchar-array.h
@@ -58,7 +58,7 @@
 static inline ndn_Error ndn_DynamicUCharArray_ensureLength(struct ndn_DynamicUCharArray *self, unsigned int length) 
 {
   if (self->length >= length)
-    return (ndn_Error)0;
+    return NDN_ERROR_success;
 
   return ndn_DynamicUCharArray_reallocArray(self, length);
 }