[aravis] arvsystem: fix error in index comparison.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] arvsystem: fix error in index comparison.
- Date: Mon, 27 Sep 2010 12:42:55 +0000 (UTC)
commit df376e53bd4209ce2bc01059d4aed021b7814a99
Author: Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
Date: Mon Sep 27 14:39:24 2010 +0200
arvsystem: fix error in index comparison.
src/arvsystem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/arvsystem.c b/src/arvsystem.c
index 944ead5..0722fe7 100644
--- a/src/arvsystem.c
+++ b/src/arvsystem.c
@@ -92,7 +92,7 @@ arv_get_device_id (unsigned int index)
interface = interfaces[i].get_interface_instance ();
n_devices = arv_interface_get_n_devices (interface);
- if (index - offset <= n_devices)
+ if (index - offset < n_devices)
return arv_interface_get_device_id (interface, index - offset);
offset += n_devices;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]