projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix off-by-one in marker id test
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt
/
marker.h
diff --git
a/ltt/branches/poly/ltt/marker.h
b/ltt/branches/poly/ltt/marker.h
index e3d4cd3d96b8706860563cba05fdcff998d212ea..73c7f24796c7d62d5c5e6bca0a20656e0d2e4d8a 100644
(file)
--- a/
ltt/branches/poly/ltt/marker.h
+++ b/
ltt/branches/poly/ltt/marker.h
@@
-52,7
+52,7
@@
static inline guint16 marker_get_id_from_info(LttTrace *trace,
static inline struct marker_info *marker_get_info_from_id(LttTrace *trace,
guint16 id)
{
static inline struct marker_info *marker_get_info_from_id(LttTrace *trace,
guint16 id)
{
- if (unlikely(trace->markers->len < id))
+ if (unlikely(trace->markers->len <
=
id))
return NULL;
return &g_array_index(trace->markers, struct marker_info, id);
}
return NULL;
return &g_array_index(trace->markers, struct marker_info, id);
}
This page took
0.023249 seconds
and
4
git commands to generate.