diff -r 053aaa9b4fb1 -r 42f6a7ba69e2 mojoshader.c --- a/mojoshader.c Fri May 09 02:33:22 2008 -0400 +++ b/mojoshader.c Fri May 09 20:32:27 2008 -0400 @@ -388,9 +388,9 @@ return FAIL; } // out_of_memory -static inline void *Malloc(Context *ctx, const int len) -{ - void *retval = ctx->malloc(len, ctx->malloc_data); +static inline void *Malloc(Context *ctx, const size_t len) +{ + void *retval = ctx->malloc((int) len, ctx->malloc_data); if (retval == NULL) out_of_memory(ctx); return retval; @@ -3863,7 +3863,7 @@ else if (shader_is_pixel(ctx)) { if (regtype == REG_TYPE_TEXTURE) - add_attribute_register(ctx, regtype, regnum, 0, 0, writemask); + add_attribute_register(ctx, regtype, regnum, MOJOSHADER_USAGE_UNKNOWN, 0, writemask); else if (regtype == REG_TYPE_SAMPLER) { const TextureType ttype = (const TextureType) ctx->dwords[0];