[Python-bugs-list] Compile bug in CVS mmapmodule.c of 31 March (PR#258)

m.favas@per.dem.csiro.au m.favas@per.dem.csiro.au
Thu, 30 Mar 2000 22:05:38 -0500 (EST)


Full_Name: Mark Favas
Version: 1.5.2+ (current CVS)
OS: Tru64 Unix
Submission from: wa-proxy.csiro.au (130.116.2.3)


Compiling mmapmodule.c from CVS of 31 March 2000 on Tru64 Unix with Compaq C
version Compaq C V6.1-110 (dtk) on Digital UNIX V4.0F  (Rev. 1229) produces
the following errors:

cc  -O -Olimit 1500 -I./../Include -I.. -DHAVE_CONFIG_H -c ./mmapmodule.c
cc: Error: ./mmapmodule.c, line 121: In this statement, "where" and "0" cannot
be compared with a relational operator. (norelational)
        if ((where >= 0) && (where < (self->data+self->size))) {
-------------^
cc: Warning: ./mmapmodule.c, line 620: In this statement, the referenced type
of
the pointer value "PyString_AsString(...)" is "char", which is not compatible
with "unsigned char". (ptrmismatch)
        buf = PyString_AsString(v);
--------^
cc: Warning: ./mmapmodule.c, line 643: In this statement, the referenced type
of
the pointer value "PyString_AsString(...)" is "char", which is not compatible
with "unsigned char". (ptrmismatch)
        buf = PyString_AsString(v);
--------^