ref: 238f23c94bf91290bcf4bcfaf3e322551b313f8c
parent: 8fdb02e9d7d831b6589665d7a849df0510afde35
parent: cf975b7ce650c1c692d7efd53b540a5f1cd68953
author: Christopher Snowhill <kode54@gmail.com>
date: Fri Apr 1 09:29:41 EDT 2016
Merge pull request #27 from winterheart/windows-fixes Fixes and improvements
--- a/dumb/src/core/duhtag.c
+++ b/dumb/src/core/duhtag.c
@@ -48,7 +48,7 @@
int duh_get_tag_iterator_get(DUH *duh, const char **key, const char **tag, int i)
{
ASSERT(key);
- ASSERT(value);
+ ASSERT(tag);
if (!duh || !duh->tag || i >= duh->n_tags) return -1;
*key = duh->tag[i][0];
--- a/dumb/src/helpers/resamp3.inc
+++ b/dumb/src/helpers/resamp3.inc
@@ -52,7 +52,6 @@
long todo;
LONG_LONG todo64;
int quality;
- int check;
if (!resampler || resampler->dir == 0) return 0;
ASSERT(resampler->dir == -1 || resampler->dir == 1);
--- a/dumb/src/it/readany.c
+++ b/dumb/src/it/readany.c
@@ -39,7 +39,7 @@
unsigned long signature_size;
DUH * duh = NULL;
- signature_size = dumbfile_get_size(f);
+ /* signature_size = dumbfile_get_size(f); */
signature_size = dumbfile_getnc( (char *)signature, maximum_signature_size, f );
dumbfile_seek( f, 0, DFS_SEEK_SET );
--- a/dumb/src/it/readpsm.c
+++ b/dumb/src/it/readpsm.c
@@ -1246,7 +1246,7 @@
}
if ( i < j ) return -1;
- else if ( j > i ) return 1;
+ else if ( i > j ) return 1;
i = memcmp( a, b, j );
if ( i ) return i;
@@ -1279,7 +1279,7 @@
if ( ver )
{
tag[2][0] = "FORMATVERSION";
- snprintf( version, 15, "%u", ver );
+ snprintf( version, 15, "%d", ver );
version[15] = 0;
tag[2][1] = (const char *) &version;
++n_tags;