Bug 690368 - msvc fixes for cmapdump.c
Summary: msvc fixes for cmapdump.c
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-31 22:32 UTC by Krzysztof Kowalczyk
Modified: 2009-04-08 02:29 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
fix for the issue (1.26 KB, patch)
2009-03-31 22:32 UTC, Krzysztof Kowalczyk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.