Corrected out of memory error position.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 22 May 2011 01:27:04 -0400
changeset 1018 ad6c6286df61
parent 1017 5034d40d718a
child 1019 e8988ca01c6d
Corrected out of memory error position.
mojoshader.c
--- a/mojoshader.c	Sun May 22 01:22:36 2011 -0400
+++ b/mojoshader.c	Sun May 22 01:27:04 2011 -0400
@@ -242,7 +242,10 @@
 void MOJOSHADER_internal_free(void *ptr, void *d) { free(ptr); }
 #endif
 
-MOJOSHADER_error MOJOSHADER_out_of_mem_error = { "Out of memory", NULL, -1 };
+MOJOSHADER_error MOJOSHADER_out_of_mem_error = {
+    "Out of memory", NULL, MOJOSHADER_POSITION_NONE
+};
+
 MOJOSHADER_parseData MOJOSHADER_out_of_mem_data = {
     1, &MOJOSHADER_out_of_mem_error, 0, 0, 0, 0,
     MOJOSHADER_TYPE_UNKNOWN, 0, 0, 0, 0