mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
minor compilation issues
This commit is contained in:
parent
723c1de520
commit
063f9bbc4d
@ -178,7 +178,7 @@ streampos ZStreamBuf::
|
||||
seekoff(streamoff off, ios_seekdir dir, ios_openmode which) {
|
||||
// Necessary for tellg() to work after seeking to 0.
|
||||
if (dir == ios::cur && off == 0) {
|
||||
if (_source->tellg() == 0) {
|
||||
if (_source->tellg() == (streampos)0) {
|
||||
return 0;
|
||||
} else {
|
||||
return -1;
|
||||
@ -199,7 +199,7 @@ seekoff(streamoff off, ios_seekdir dir, ios_openmode which) {
|
||||
gbump(n);
|
||||
|
||||
_source->seekg(0, ios::beg);
|
||||
if (_source->tellg() == 0) {
|
||||
if (_source->tellg() == (streampos)0) {
|
||||
_z_source.next_in = Z_NULL;
|
||||
_z_source.avail_in = 0;
|
||||
_z_source.next_out = Z_NULL;
|
||||
|
@ -386,7 +386,7 @@ void ShaderTerrainMesh::do_create_chunk_geom() {
|
||||
vtx_pos.set_x(max(0.0f, min(1.0f, vtx_pos.get_x())));
|
||||
vtx_pos.set_y(max(0.0f, min(1.0f, vtx_pos.get_y())));
|
||||
}
|
||||
vertex_writer.add_data3f(vtx_pos);
|
||||
vertex_writer.add_data3(vtx_pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -332,11 +332,7 @@ static drflac* drflac_open_memory(const void* data, size_t dataSize);
|
||||
#include <endian.h>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define DRFLAC_INLINE __forceinline
|
||||
#else
|
||||
#define DRFLAC_INLINE inline
|
||||
#endif
|
||||
#define DRFLAC_INLINE ALWAYS_INLINE
|
||||
|
||||
#define DRFLAC_BLOCK_TYPE_STREAMINFO 0
|
||||
#define DRFLAC_BLOCK_TYPE_PADDING 1
|
||||
|
@ -276,7 +276,7 @@ read_pfm(PfmFile &pfm) {
|
||||
|
||||
// Reposition the file at the beginning.
|
||||
_file->seekg(0, ios::beg);
|
||||
if (_file->tellg() != 0) {
|
||||
if (_file->tellg() != (streampos)0) {
|
||||
pnmimage_cat.error()
|
||||
<< "Could not reposition file pointer to the beginning.\n";
|
||||
return false;
|
||||
@ -427,7 +427,7 @@ int StbImageReader::
|
||||
read_data(xel *array, xelval *alpha) {
|
||||
// Reposition the file at the beginning.
|
||||
_file->seekg(0, ios::beg);
|
||||
if (_file->tellg() != 0) {
|
||||
if (_file->tellg() != (streampos)0) {
|
||||
pnmimage_cat.error()
|
||||
<< "Could not reposition file pointer to the beginning.\n";
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user