Browse Source

changed HL_VERSION representation, update to 1.10

Nicolas Cannasse 6 years ago
parent
commit
5f05a007a2
3 changed files with 4 additions and 4 deletions
  1. 1 1
      src/code.c
  2. 1 1
      src/hl.h
  3. 2 2
      src/main.c

+ 1 - 1
src/code.c

@@ -438,7 +438,7 @@ hl_code *hl_code_read( const unsigned char *data, int size, char **error_msg ) {
 	r->code = c;
 	c->version = READ();
 	if( c->version <= 1 || c->version > max_version ) {
-		printf("Found version %d while HL %d.%d supports up to %d\n",c->version,HL_VERSION>>8,(HL_VERSION>>4)&15,max_version);
+		printf("Found version %d while HL %d.%d supports up to %d\n",c->version,HL_VERSION>>16,(HL_VERSION>>8)&0xFF,max_version);
 		EXIT("Unsupported bytecode version");
 	}
 	flags = UINDEX();

+ 1 - 1
src/hl.h

@@ -27,7 +27,7 @@
 	https://github.com/HaxeFoundation/hashlink/wiki/
 **/
 
-#define HL_VERSION	0x190
+#define HL_VERSION	0x010A00
 
 #if defined(_WIN32)
 #	define HL_WIN

+ 2 - 2
src/main.c

@@ -162,7 +162,7 @@ int main(int argc, pchar *argv[]) {
 			continue;
 		}
 		if( pcompare(arg,PSTR("--version")) == 0 ) {
-			printf("%d.%d.%d",HL_VERSION>>8,(HL_VERSION>>4)&15,HL_VERSION&15);
+			printf("%d.%d.%d",HL_VERSION>>16,(HL_VERSION>>8)&0xFF,HL_VERSION&0xFF);
 			return 0;
 		}
 		if( pcompare(arg,PSTR("--hot-reload")) == 0 ) {
@@ -186,7 +186,7 @@ int main(int argc, pchar *argv[]) {
 		file = PSTR("hlboot.dat");
 		fchk = pfopen(file,"rb");
 		if( fchk == NULL ) {
-			printf("HL/JIT %d.%d.%d (c)2015-2019 Haxe Foundation\n  Usage : hl [--debug <port>] [--debug-wait] <file>\n",HL_VERSION>>8,(HL_VERSION>>4)&15,HL_VERSION&15);
+			printf("HL/JIT %d.%d.%d (c)2015-2019 Haxe Foundation\n  Usage : hl [--debug <port>] [--debug-wait] <file>\n",HL_VERSION>>16,(HL_VERSION>>8)&0xFF,HL_VERSION&0xFF);
 			return 1;
 		}
 		fclose(fchk);