#64 IL_FILE_{READ,WRITE}_ERROR have the same id

open
nobody
None
5
2004-10-21
2004-10-21
Tom Parker
No

IL_FILE_READ_ERROR and IL_FILE_WRITE_ERROR have *both* been defined as 0x512, making it impossible to tell them apart. The below patch changes IL_FILE_WRITE_ERROR to 0x513 instead. If everyone is using the #define names, then this should break nothing

--- include/IL/il.h 2004-10-21 13:55:59.000000000 +0200
+++ include/IL/il.h.new 2004-10-21 13:55:51.000000000 +0200
@@ -247,7 +247,7 @@
#define IL_INVALID_CONVERSION 0x0510
#define IL_BAD_DIMENSIONS 0x0511
#define IL_FILE_READ_ERROR 0x0512 // 05/12/2002: Addition by Sam.
-#define IL_FILE_WRITE_ERROR 0x0512
+#define IL_FILE_WRITE_ERROR 0x0513

#define IL_LIB_GIF_ERROR 0x05E1
#define IL_LIB_JPEG_ERROR 0x05E2

Discussion


Log in to post a comment.