~asdfghjkl-deactivatedaccount1/python-imaging/gif-fix

« back to all changes in this revision

Viewing changes to Sane/_sane.c

  • Committer: effbot
  • Date: 2006-07-05 20:36:11 UTC
  • Revision ID: svn-v4:be285980-f00d-0410-a9fe-d4747b46ecd0:pil:348
Load Imaging-1.1.6b1 into pil.

Show diffs side-by-side

added added

removed removed

Lines of Context:
392
392
    
393
393
  endian.i16 = 1;
394
394
  
395
 
  if (!PyArg_ParseTuple(args, "i|O", &L, &pyNoCancel))
 
395
  if (!PyArg_ParseTuple(args, "l|O", &L, &pyNoCancel))
396
396
    return NULL;
397
397
  if (self->h==NULL)
398
398
    {
1158
1158
  SANE_Int cap;
1159
1159
  long lg;
1160
1160
  
1161
 
  if (!PyArg_ParseTuple(args, "i", &lg))
 
1161
  if (!PyArg_ParseTuple(args, "l", &lg))
1162
1162
    return NULL;
1163
1163
  cap=lg;
1164
1164
  return PyInt_FromLong( SANE_OPTION_IS_ACTIVE(cap));
1170
1170
  SANE_Int cap;
1171
1171
  long lg;
1172
1172
  
1173
 
  if (!PyArg_ParseTuple(args, "i", &lg))
 
1173
  if (!PyArg_ParseTuple(args, "l", &lg))
1174
1174
    return NULL;
1175
1175
  cap=lg;
1176
1176
  return PyInt_FromLong( SANE_OPTION_IS_SETTABLE(cap));