From 47b5e0968aa0ec47f522ba357c159b2450645806 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Wed, 2 Jul 2014 15:41:10 -0700 Subject: Sync from internal Google development. --- upb/descriptor/reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upb/descriptor/reader.c') diff --git a/upb/descriptor/reader.c b/upb/descriptor/reader.c index c9425a3..fdfa4e3 100644 --- a/upb/descriptor/reader.c +++ b/upb/descriptor/reader.c @@ -126,7 +126,7 @@ upb_def **upb_descreader_getdefs(upb_descreader *r, void *owner, int *n) { } upb_sink *upb_descreader_input(upb_descreader *r) { - return (upb_sink*)r->sink; + return &r->sink; } static upb_msgdef *upb_descreader_top(upb_descreader *r) { -- cgit v1.2.3