admin
2022-08-18 67a5e3d825fde17b7b00906ce42b0bd8cafebc4e
ConsoleApplication/kernel.cl
@@ -326,6 +326,7 @@
      }
      if (m_s == -1 || m_e == -1) {
         //printf("没找到小数点:%d", index);
         nps[0] = -1;
         nps[1] = -1;
         nps[2] = -1;
@@ -335,8 +336,11 @@
         nps[5] = -1;
         nps[6] = -1;
         nps[7] = -1;
      }
      else {
         //printf("找到了小数点:%d", index);
         nps[0] = startx;
         nps[1] = starty;
         nps[2] = startx + m_s - 1;
@@ -346,8 +350,12 @@
         nps[5] = starty;
         nps[6] = num_end;
         nps[7] = endy;
      }
      nps[8] = -1;
      nps[9] = -1;
      nps[10] = -1;
      nps[11] = -1;
@@ -407,11 +415,6 @@
         nps[5] = -1;
         nps[6] = -1;
         nps[7] = -1;
         nps[8] = -1;
         nps[9] = -1;
         nps[10] = -1;
         nps[11] = -1;
      }
      else {
         nps[0] = startx;
@@ -423,12 +426,12 @@
         nps[5] = starty;
         nps[6] = endx;
         nps[7] = endy;
         nps[8] = -1;
         nps[9] = -1;
         nps[10] = -1;
         nps[11] = -1;
      }
      nps[8] = -1;
      nps[9] = -1;
      nps[10] = -1;
      nps[11] = -1;
   }
   //代码与数字
@@ -873,7 +876,10 @@
      }
      nps[8] = -1;
      nps[9] = -1;
      nps[10] = -1;
      nps[11] = -1;
   }
@@ -1220,7 +1226,7 @@
         }
      }
      if (m1_s < 0 || m1_e < 0 || m2_s < 0 || m2_e < 0) {
         printf("未查找到冒号:m1_s:%d m1_end:%d m2_s:%d m2_e:%d\n", m1_s, m1_e, m2_s, m2_e);
         //printf("未查找到冒号:m1_s:%d m1_end:%d m2_s:%d m2_e:%d\n", m1_s, m1_e, m2_s, m2_e);
         return;
      }