ide/sdk: Fixed forcing bit depth option not invoked for static libraries
[sdk] / compiler / bootstrap / libec / bootstrap / ast.c
index b5d1150..dc5af6f 100644 (file)
@@ -3639,6 +3639,14 @@ specType->kind = 21;
 }
 else if(spec->type == 1)
 {
+if(spec->name && (!strcmp(spec->name, "intptr") || !strcmp(spec->name, "uintptr")))
+{
+specType->kind = 22;
+if(!strcmp(spec->name, "uintptr"))
+specType->isSigned = 0x0;
+}
+else
+{
 struct Symbol * symbol = spec->name ? FindType(curContext, spec->name) : (((void *)0));
 
 if(symbol && symbol->type)
@@ -3658,6 +3666,7 @@ if(!specType->_class)
 specType->kind = 3;
 }
 }
+}
 else if(spec->type == 2)
 {
 specType->kind = 15;