Bug 690368

Summary: msvc fixes for cmapdump.c
Product: MuPDF Reporter: Krzysztof Kowalczyk <kkowalczyk>
Component: mupdfAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---
Attachments: fix for the issue

Description Krzysztof Kowalczyk 2009-03-31 22:32:22 UTC
Visual C doesn't understand an empty array of structs which is sometimes
generated by cmapdump.c. The attached patch fixes cmapdump.c so that if the
number of entries is 0, generates a dummy entry. This works in both Visual C
(tested on 2005 and 2008) and gcc.
Comment 1 Krzysztof Kowalczyk 2009-03-31 22:32:51 UTC
Created attachment 4880 [details]
fix for the issue
Comment 2 Tor Andersson 2009-04-08 02:29:59 UTC
Fixed. Thanks.