minor compilation issues

This commit is contained in:
David Rose 2016-04-28 16:14:44 -07:00
parent 723c1de520
commit 063f9bbc4d
4 changed files with 6 additions and 10 deletions

View File

@ -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;

View File

@ -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);
}
}

View File

@ -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

View File

@ -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;