From: <mar...@us...> - 2013-08-27 11:47:18
|
Revision: 14520 http://sourceforge.net/p/gphoto/code/14520 Author: marcusmeissner Date: 2013-08-27 11:47:13 +0000 (Tue, 27 Aug 2013) Log Message: ----------- unsigned loop bounds Modified Paths: -------------- trunk/libgphoto2/camlibs/ptp2/library.c Modified: trunk/libgphoto2/camlibs/ptp2/library.c =================================================================== --- trunk/libgphoto2/camlibs/ptp2/library.c 2013-08-27 11:38:35 UTC (rev 14519) +++ trunk/libgphoto2/camlibs/ptp2/library.c 2013-08-27 11:47:13 UTC (rev 14520) @@ -6749,7 +6749,8 @@ ret = ptp_getstorageids(params, &storageids); if (ret == PTP_RC_OK) { - int k; + unsigned int k; + for (k=0;k<storageids.n;k++) { if (!(storageids.Storage[k] & 0xffff)) continue; if (storageids.Storage[k] == 0x80000001) continue; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |