lhoerl
2015-08-03 ed07df16da675c4c123e02a996822daf13d69c63
libscpi/src/utils.c
@@ -338,7 +338,7 @@
    int rightFlag = 0; // flag for ']' on right
    int cmd_sep_pos = 0;
    size_t numbers_idx = -1;
    int32_t numbers_idx = -1;         /* Lutz Hoerl, Thorlabs: changed type from size_t to int, size_t is positive only, int does not produce unsigne warnings */
    int32_t *number_ptr = NULL;
    const char * pattern_ptr = pattern;
@@ -548,7 +548,7 @@
        if (c1 != c2) {
            return c1 - c2;
        }
        if (c1 = '\0') {
        if (c1 == '\0') {        /* Lutz Hoerl, Thorlabs: think this (c1 = '\0') was really a bug */
            return 0;
        }
    }