Browse Source

* Fix compilation for ARM

Michaël Van Canneyt 2 years ago
parent
commit
188fc9c112
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/options.pas

+ 1 - 1
compiler/options.pas

@@ -2526,7 +2526,7 @@ begin
 {$ifdef arm}
 {$ifdef arm}
        'I' :
        'I' :
          begin
          begin
-           if (upper(copy(more,j+1)='THUMB') and
+           if (upper(copy(more,j+1))='THUMB') and
              { does selected CPU really understand thumb? }
              { does selected CPU really understand thumb? }
              (init_settings.cputype in cpu_has_thumb) then
              (init_settings.cputype in cpu_has_thumb) then
              init_settings.instructionset:=is_thumb
              init_settings.instructionset:=is_thumb