LIBLDAP.DLL 3.2 - compiler warnings: questions!

Nils Andreas Thommesen (Nils.Thommesen@kvatro.no)
Thu, 7 Dec 1995 12:14:57 +0100

MIME-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: 8bit

I just down-loaded the source for libldap 3.2, and when compiling
the code for Windows 3.1, I get quite a few warnings.

(This has perhaps been as issue here before, but I have just
subscribed to this mailing list.)

The warnings are generated when longs are assigned to ints.
int's are on 16-bit platforms, just 16-bits, but on any standard
unix-platform an int should be 32-bits. On the other hand, a long is
always 32-bit, both on Windows and Unix-machines. Alas, the warnings
occur because a 32-bit int could very well "overflow" a 16-bit int!

Now, I have a few questions:
- Does anybody know if these warnings COULD give me trouble?
- If they are potiential sources of problems: does anybody have
a solution?
- I would myself try to change the "culprit" code to make the
variables that are currently "int" to "long int". A bad idea?

Nils Andreas Thommesen
- - - - - - - - - - - - - - - - -
Email: Nils.Thommesen@kvatro.no
Work : Kvatro-Notis, Pirsenteret, N-7005 Trondheim; +47 73 545 722

Home : E.B Schieldropsv. 9-24,7033 Trondheim,Norway; +47 73 8888 93

Fax : +47 73 545 750 | I'm left-handed, left-eyed,
WWW : http://www.kvatro.no/~nat | left-footed but not left
http://www.kvatro.no/notis | behind!