File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ using namespace OCLRT;
1717
1818int  main (int  numArgs, const  char  *argv[]) {
1919    try  {
20-         if  (numArgs > 0  && !strcmp (argv[1 ], " disasm" //  -file binary.bin -patch workspace/igc/inc -dump dump/folder
20+         if  (numArgs > 1  && !strcmp (argv[1 ], " disasm" //  -file binary.bin -patch workspace/igc/inc -dump dump/folder
2121            BinaryDecoder disasm;
2222            int  retVal = disasm.validateInput (numArgs, argv);
2323            if  (retVal == 0 ) {
2424                return  disasm.decode ();
2525            } else  {
2626                return  retVal;
2727            }
28-         } else  if  (numArgs > 0  && !strcmp (argv[1 ], " asm" //  -dump dump/folder -out new_elf.bin
28+         } else  if  (numArgs > 1  && !strcmp (argv[1 ], " asm" //  -dump dump/folder -out new_elf.bin
2929            BinaryEncoder assembler;
3030            int  retVal = assembler.validateInput (numArgs, argv);
3131            if  (retVal == 0 ) {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments