[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r6030 - gnuradio/branches/developers/trondeau/ofdm_mod
From: |
trondeau |
Subject: |
[Commit-gnuradio] r6030 - gnuradio/branches/developers/trondeau/ofdm_mod/gnuradio-core/src/python/gnuradio/gruimpl |
Date: |
Thu, 19 Jul 2007 16:12:16 -0600 (MDT) |
Author: trondeau
Date: 2007-07-19 16:12:15 -0600 (Thu, 19 Jul 2007)
New Revision: 6030
Modified:
gnuradio/branches/developers/trondeau/ofdm_mod/gnuradio-core/src/python/gnuradio/gruimpl/crc.py
Log:
fixed warning ticket:156
Modified:
gnuradio/branches/developers/trondeau/ofdm_mod/gnuradio-core/src/python/gnuradio/gruimpl/crc.py
===================================================================
---
gnuradio/branches/developers/trondeau/ofdm_mod/gnuradio-core/src/python/gnuradio/gruimpl/crc.py
2007-07-19 04:56:10 UTC (rev 6029)
+++
gnuradio/branches/developers/trondeau/ofdm_mod/gnuradio-core/src/python/gnuradio/gruimpl/crc.py
2007-07-19 22:12:15 UTC (rev 6030)
@@ -1,5 +1,5 @@
#
-# Copyright 2005 Free Software Foundation, Inc.
+# Copyright 2005,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -25,7 +25,7 @@
def gen_and_append_crc32(s):
crc = gr.crc32(s)
- return s + struct.pack(">I", hexint(crc))
+ return s + struct.pack(">I", hexint(crc) & 0xFFFFFFFF)
def check_crc32(s):
if len(s) < 4:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r6030 - gnuradio/branches/developers/trondeau/ofdm_mod/gnuradio-core/src/python/gnuradio/gruimpl,
trondeau <=