diff options
author | Igor Melichev <igor.melichev@artifex.com> | 2006-10-26 09:26:33 +0000 |
---|---|---|
committer | Igor Melichev <igor.melichev@artifex.com> | 2006-10-26 09:26:33 +0000 |
commit | 7a7e71b3040f1106cb44987b8479ab84ee1f4804 (patch) | |
tree | 947d94904d1352e54c9b116d953e6ba855d5e103 /pxl | |
parent | 18f86ca56d086392227dd1f8e2f9cd4a86a4ada6 (diff) |
Fix : Some type casts were potentially harmful.
DETAILS :
Corresponds to gs revision 7128.
Detected with MSVC warnings.
No, that's not all warnings of that kind.
Here I fix missed function arguments and unuseful unchecked dynamic casts
(except char * <--> byte *), only in modules which needs to
rebuild right now. Fixing all such problems would be a big job though.
The implementation of new_logical_page_for_passthrough_snippet
was wrong and I guess it always returned -1.
The new code should be better, but it may cause
a different behavior.
EXPECTED DIFFERENCES :
None (not sure due to the new_logical_page_for_passthrough_snippet change).
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2664 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pxl')
-rw-r--r-- | pxl/pxl.mak | 4 | ||||
-rw-r--r-- | pxl/pxpthr.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/pxl/pxl.mak b/pxl/pxl.mak index ee99920a1..ea1326198 100644 --- a/pxl/pxl.mak +++ b/pxl/pxl.mak @@ -132,8 +132,8 @@ $(PXLOBJ)pxptable.$(OBJ): $(PXLSRC)pxptable.c $(AK) $(std_h)\ $(PXLCCC) $(PXLSRC)pxptable.c $(PXLO_)pxptable.$(OBJ) $(PXLOBJ)pxpthr.$(OBJ): $(PXLSRC)pxpthr.c $(AK) \ - $(pcommand_h) $(pgmand_h) $(pcstate_h) $(pcparse_h) $(pxstate_h)\ - $(pxoper_h) $(stdio__h) + $(pcommand_h) $(pgmand_h) $(pcstate_h) $(pcparse_h) $(pctop_h)\ + $(pcpage_h) $(pxstate_h) $(pxoper_h) $(stdio__h) $(PXLCCC) $(PXLSRC)pxpthr.c $(PXLO_)pxpthr.$(OBJ) $(PXLOBJ)pxvalue.$(OBJ): $(PXLSRC)pxvalue.c $(AK) $(std_h) $(gsmemory_h) $(pxvalue_h) diff --git a/pxl/pxpthr.c b/pxl/pxpthr.c index 58f57f6fc..20018d44d 100644 --- a/pxl/pxpthr.c +++ b/pxl/pxpthr.c @@ -4,6 +4,8 @@ #include "pgmand.h" #include "pcstate.h" #include "pcparse.h" +#include "pctop.h" +#include "pcpage.h" #include "pxoper.h" #include "pxstate.h" |