home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / graphics / tiff / unix / archive.z / archive / text0053.txt < prev    next >
Encoding:
Text File  |  1995-09-20  |  3.6 KB  |  99 lines

  1. The SunPro C 3.0 compiler, under strict checking options, emits the
  2. following warnings:
  3.  
  4. acc -Xc -vc -fast -native  -I.   -c  tif_open.c
  5. "tif_open.c", line 35: warning: constant promoted to unsigned long
  6. "tif_open.c", line 35: warning: initializer does not fit: 0xffffffff
  7. "tif_open.c", line 37: warning: constant promoted to unsigned long
  8. "tif_open.c", line 37: warning: initializer does not fit: 0xffffffff
  9. "tif_open.c", line 38: warning: constant promoted to unsigned long
  10. "tif_open.c", line 38: warning: initializer does not fit: 0xffffffff
  11. "tif_open.c", line 42: warning: constant promoted to unsigned long
  12. "tif_open.c", line 42: warning: initializer does not fit: 0xffffffff
  13. "tif_open.c", line 43: warning: constant promoted to unsigned long
  14. "tif_open.c", line 43: warning: initializer does not fit: 0xffffffff
  15. "tif_open.c", line 44: warning: constant promoted to unsigned long
  16. "tif_open.c", line 44: warning: initializer does not fit: 0xffffffff
  17. "tif_open.c", line 45: warning: constant promoted to unsigned long
  18. "tif_open.c", line 45: warning: initializer does not fit: 0xffffffff
  19.  
  20. The warnings are generated to indicate that an unsigned value with
  21. the high bit set cannot be truly represented as a signed value.
  22. These messages may be eliminated by converting the tif_typemask member
  23. of a struct tiff to an unsigned value as it is actually used, with the
  24. changes noted below to the tiffiop.h and tif_open.c files.
  25.  
  26.  
  27. *** tiffiop.h_orig    Thu Sep 29 17:01:29 1994
  28. --- tiffiop.h    Wed Dec 21 08:22:14 1994
  29. ***************
  30. *** 261,267 ****
  31.       TIFFDirectory    tif_dir;    /* internal rep of current directory */
  32.       TIFFHeader    tif_header;    /* file's header block */
  33.       const int*    tif_typeshift;    /* data type shift counts */
  34. !     const long*    tif_typemask;    /* data type masks */
  35.       uint32        tif_row;    /* current scanline */
  36.       tdir_t        tif_curdir;    /* current directory (index) */
  37.       tstrip_t    tif_curstrip;    /* current strip for read/write */
  38. --- 261,267 ----
  39.       TIFFDirectory    tif_dir;    /* internal rep of current directory */
  40.       TIFFHeader    tif_header;    /* file's header block */
  41.       const int*    tif_typeshift;    /* data type shift counts */
  42. !     const uint32*    tif_typemask;    /* data type masks */
  43.       uint32        tif_row;    /* current scanline */
  44.       tdir_t        tif_curdir;    /* current directory (index) */
  45.       tstrip_t    tif_curstrip;    /* current strip for read/write */
  46.  
  47.  
  48. *** tif_open.c_orig    Thu Sep 29 17:01:40 1994
  49. --- tif_open.c    Wed Dec 21 08:22:22 1994
  50. ***************
  51. *** 29,48 ****
  52.    */
  53.   #include "tiffiop.h"
  54.   
  55. ! static const long typemask[13] = {
  56. !     0L,        /* TIFF_NOTYPE */
  57. !     0x000000ffL,    /* TIFF_BYTE */
  58. !     0xffffffffL,    /* TIFF_ASCII */
  59. !     0x0000ffffL,    /* TIFF_SHORT */
  60. !     0xffffffffL,    /* TIFF_LONG */
  61. !     0xffffffffL,    /* TIFF_RATIONAL */
  62. !     0x000000ffL,    /* TIFF_SBYTE */
  63. !     0x000000ffL,    /* TIFF_UNDEFINED */
  64. !     0x0000ffffL,    /* TIFF_SSHORT */
  65. !     0xffffffffL,    /* TIFF_SLONG */
  66. !     0xffffffffL,    /* TIFF_SRATIONAL */
  67. !     0xffffffffL,    /* TIFF_FLOAT */
  68. !     0xffffffffL,    /* TIFF_DOUBLE */
  69.   };
  70.   static const int bigTypeshift[13] = {
  71.       0,        /* TIFF_NOTYPE */
  72. --- 29,48 ----
  73.    */
  74.   #include "tiffiop.h"
  75.   
  76. ! static const uint32 typemask[13] = {
  77. !     0UL,        /* TIFF_NOTYPE */
  78. !     0x000000ffUL,    /* TIFF_BYTE */
  79. !     0xffffffffUL,    /* TIFF_ASCII */
  80. !     0x0000ffffUL,    /* TIFF_SHORT */
  81. !     0xffffffffUL,    /* TIFF_LONG */
  82. !     0xffffffffUL,    /* TIFF_RATIONAL */
  83. !     0x000000ffUL,    /* TIFF_SBYTE */
  84. !     0x000000ffUL,    /* TIFF_UNDEFINED */
  85. !     0x0000ffffUL,    /* TIFF_SSHORT */
  86. !     0xffffffffUL,    /* TIFF_SLONG */
  87. !     0xffffffffUL,    /* TIFF_SRATIONAL */
  88. !     0xffffffffUL,    /* TIFF_FLOAT */
  89. !     0xffffffffUL,    /* TIFF_DOUBLE */
  90.   };
  91.   static const int bigTypeshift[13] = {
  92.       0,        /* TIFF_NOTYPE */
  93.  
  94. Glenn Herteg
  95. IA Corporation
  96. glenn@lia.com
  97.  
  98.  
  99.