[Groonga-commit] groonga/groonga [master] cast GrnTestEncoding to grn_encoding explicitly.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 3月 9日 (水) 10:06:17 JST


Kouhei Sutou	2011-03-09 01:06:17 +0000 (Wed, 09 Mar 2011)

  New Revision: f68e43e84b40789ea82a64d1d8af5ce390de09c4

  Log:
    cast GrnTestEncoding to grn_encoding explicitly.

  Modified files:
    test/unit/lib/grn-test-hash-factory.c

  Modified: test/unit/lib/grn-test-hash-factory.c (+2 -2)
===================================================================
--- test/unit/lib/grn-test-hash-factory.c    2011-03-08 02:38:11 +0000 (3a9ea9d)
+++ test/unit/lib/grn-test-hash-factory.c    2011-03-09 01:06:17 +0000 (a42bc7f)
@@ -166,7 +166,7 @@ grn_test_hash_factory_ensure_context(GrnTestHashFactory *factory, GError **error
 
   priv->context = g_new0(grn_ctx, 1);
   result = grn_ctx_init(priv->context, priv->context_flags);
-  GRN_CTX_SET_ENCODING(priv->context, priv->encoding);
+  GRN_CTX_SET_ENCODING(priv->context, ((grn_encoding)priv->encoding));
   if (result != GRN_SUCCESS) {
     g_set_error(error,
                 GRN_TEST_HASH_FACTORY_ERROR,
@@ -208,7 +208,7 @@ grn_test_hash_factory_create(GrnTestHashFactory *factory, GError **error)
     return NULL;
 
   priv = GRN_TEST_HASH_FACTORY_GET_PRIVATE(factory);
-  GRN_CTX_SET_ENCODING(priv->context, priv->encoding);
+  GRN_CTX_SET_ENCODING(priv->context, (grn_encoding)(priv->encoding));
   priv->hash = grn_hash_create(priv->context, priv->path, priv->key_size,
                                priv->value_size, priv->flags);
   if (!priv->hash) {




Groonga-commit メーリングリストの案内
Back to archive index