projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e833dd1
)
score.c: Add OSL_UNIQUE to storage flags of score column.
author
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 4 Jan 2015 02:50:02 +0000
(
02:50
+0000)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 18 Jan 2015 14:45:49 +0000
(15:45 +0100)
The comparator for this column never returns 0 unless the objects
being compared coincide.
score.c
patch
|
blob
|
history
diff --git
a/score.c
b/score.c
index 3c5e04f633542b232c17bcc0de542872f3ecaef3..81b3ded0021f41115dcc78a8f9605d722195c389 100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-71,7
+71,7
@@
static struct osl_column_description score_cols[] = {
},
[SCORECOL_SCORE] = {
.storage_type = OSL_NO_STORAGE,
- .storage_flags = OSL_RBTREE | OSL_FIXED_SIZE,
+ .storage_flags = OSL_RBTREE | OSL_FIXED_SIZE
| OSL_UNIQUE
,
.name = "score",
.compare_function = score_compare,
.data_size = sizeof(long)