From 01cfc051a3ed2224cf36675000df135c3d1c4ef6 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Fri, 6 Aug 2010 18:23:07 +0200 Subject: [PATCH] Genres: enable and fix the genre_bit method --- src/genres.vala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/genres.vala b/src/genres.vala index 7133f1c..0b574cd 100644 --- a/src/genres.vala +++ b/src/genres.vala @@ -112,18 +112,16 @@ public struct Genres { return _genre_string[genre]; } -/* public static int genre_bit (string genre) { int i = 0; do { - if (_genres[i] == genre) { + if (_genre_string[i] == genre) { return (1 << i); } } while (++i < 28); return 0; } -*/ } -- 1.7.9.5