[padb-devel] [padb] r172 committed - Use explicit -1 as array indexes rather than calculating...
codesite-noreply at google.com
codesite-noreply at google.com
Thu Sep 3 22:07:21 BST 2009
Revision: 172
Author: apittman
Date: Thu Sep 3 14:06:55 2009
Log: Use explicit -1 as array indexes rather than calculating
the length of the array and subtracting one.
http://code.google.com/p/padb/source/detail?r=172
Modified:
/branches/cleanup/src/padb
=======================================
--- /branches/cleanup/src/padb Thu Sep 3 13:56:37 2009
+++ /branches/cleanup/src/padb Thu Sep 3 14:06:55 2009
@@ -6362,8 +6362,8 @@
$ok = 1;
$ok = 0
- unless ( defined $frames[$#frames]{func}
- and $frames[$#frames]{func} eq 'main' );
+ unless ( defined $frames[-1]{func}
+ and $frames[-1]{func} eq 'main' );
} else {
$ok = 0;
}
More information about the padb-devel
mailing list