~ubuntu-branches/ubuntu/trusty/python-pyo/trusty

« back to all changes in this revision

Viewing changes to src/objects/selectmodule.c

  • Committer: Package Import Robot
  • Author(s): Tiago Bortoletto Vaz
  • Date: 2013-01-30 00:41:56 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20130130004156-bznl6b78sxa2640d
Tags: upstream-0.6.3+svn1068
ImportĀ upstreamĀ versionĀ 0.6.3+svn1068

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
static void
38
38
Select_selector(Select *self) {
39
 
    MYFLT val, selval, inval;
 
39
    MYFLT val, inval;
40
40
    int i;
41
41
 
42
42
    MYFLT *in = Stream_getData((Stream *)self->input_stream);
43
43
    
44
 
    selval = (float)self->value;
45
44
    for (i=0; i<self->bufsize; i++) {
46
45
        inval = in[i];
47
46
        if (inval == self->value && inval != self->last_value)