Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_crc.cs fails on 64 bit systems #2

Open
GoogleCodeExporter opened this issue Nov 15, 2015 · 2 comments
Open

test_crc.cs fails on 64 bit systems #2

GoogleCodeExporter opened this issue Nov 15, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Running cs regression tests
Failed Regression Test: test_crc.cs
  See test_crc.cs.out and test_crc.cs.err
make: *** [test] Error 1

test_crc.cs.err
4c4
< -2128917020

---
> 2166050276

test_crc.cs.out
Parsing test_crc.cs
419156592
1357503972
2166050276


test_crc.cs.gold

Parsing test_crc.cs
419156592
1357503972
-2128917020

This is caused by n in struct _arg being a long int, which is 32 bits on
32bit systems, and 64 bits on 64bit systems.  Making n just an int causes
it to pass, and making it a long will change the gold but should make it
pass on both as well.  The consequences of making either of those changes
will have to be investigated.

Original issue reported on code.google.com by [email protected] on 11 Feb 2008 at 8:14

@GoogleCodeExporter
Copy link
Author

This issue was still not fixed in the latest version clearsilver-0.10.5
If you are compiling the source code, the edit the cs/Makefile, remove the 
test_crc part, and use the library carefully.

Original comment by [email protected] on 27 Jul 2012 at 12:19

@GoogleCodeExporter
Copy link
Author

How about crc16? 
https://github.com/xiangzhai/xcloud/blob/master/test/hellocrc.cpp

Original comment by [email protected] on 29 Sep 2012 at 2:07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant