[glibmm/gmmproc-refactor] Fix wrong shifts in Shared.pm.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/gmmproc-refactor] Fix wrong shifts in Shared.pm.
- Date: Wed, 6 Jun 2012 07:12:12 +0000 (UTC)
commit 138750cd3d2ed20a04e508e0a86f39003187a79d
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Sun May 13 01:24:19 2012 +0200
Fix wrong shifts in Shared.pm.
1 >> x, where x > 0, produces 0, which is not what we want. But these
constants will probably go away when new conversions system is introduced.
tools/pm/Common/Shared.pm | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tools/pm/Common/Shared.pm b/tools/pm/Common/Shared.pm
index 4d46caa..cca770e 100644
--- a/tools/pm/Common/Shared.pm
+++ b/tools/pm/Common/Shared.pm
@@ -27,10 +27,10 @@ use feature ':5.10';
use constant
{
'GEN_NONE' => 0,
- 'GEN_NORMAL' => (1 >> 0),
- 'GEN_REF' => (1 >> 1),
- 'GEN_PTR' => (1 >> 2),
- 'GEN_CONST' => (1 >> 3)
+ 'GEN_NORMAL' => (1 << 0),
+ 'GEN_REF' => (1 << 1),
+ 'GEN_PTR' => (1 << 2),
+ 'GEN_CONST' => (1 << 3)
};
use Common::Util;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]