summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2014-08-05 08:20:57 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2015-11-01 10:13:26 +0000
commit3f94a4f5902e5e342ed77de6739934d49e97f937 (patch)
treee25fb6b70ddade84fa0a76868b803520b0a647db
parente1facb1e7e8a0568774a1630c1a8621679635ef5 (diff)
downloadlibcroco-3f94a4f5902e5e342ed77de6739934d49e97f937.tar.gz
Derive pointer to have appropriate type
https://bugzilla.gnome.org/show_bug.cgi?id=710076
-rw-r--r--src/cr-enc-handler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cr-enc-handler.c b/src/cr-enc-handler.c
index 646bf1f..80d993d 100644
--- a/src/cr-enc-handler.c
+++ b/src/cr-enc-handler.c
@@ -89,8 +89,7 @@ cr_enc_handler_get_instance (enum CREncoding a_enc)
for (i = 0; gv_default_enc_handlers[i].encoding; i++) {
if (gv_default_enc_handlers[i].encoding == a_enc) {
- return (CREncHandler *)
- & gv_default_enc_handlers[i].encoding;
+ return (CREncHandler *) & gv_default_enc_handlers[i];
}
}