Comments (3)
The loss of precision error is identical to the build failure reported under
Mac OS X when the target platform is x86_64. The solution is the same: change
the cast from `(unsigned int)` to `(uintptr_t)`. This avoids assumptions about
pointer width.
One way to avoid the format error is to cast the argument to match the expected
type. However, since the declared type of the value is `uint64_t`, a better
solution would likely be:
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
and then use the format specifier `PRIx64`.
A patch is attached.
Original comment by [email protected]
on 16 Nov 2010 at 2:02
Attachments:
from codegoogle.anic.
Issue 10 has been merged into this issue.
Original comment by [email protected]
on 17 Nov 2010 at 7:38
from codegoogle.anic.
the patch that jermy made worked great for me running 64bit ubuntu i think it
shoul be applied to the main repo
Original comment by [email protected]
on 18 Aug 2012 at 8:57
from codegoogle.anic.
Related Issues (12)
- Things to handle HOT 2
- Build on OSX Leopard Fail HOT 1
- Build Fail on Mac OS X as at 14 August 2012 HOT 2
- anic -h fails HOT 1
- build is messy on Snow Leopard HOT 4
- Feature Request: A way to add/call C/C++/ASM code HOT 3
- Broken type checking HOT 1
- Logotype is ugly :) HOT 6
- Reddit disapproves anic's syntax HOT 3
- Compiler returning empty binary files HOT 3
- Casting pointer to unsigned int can cause compilation failure on some 64-bit machines HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codegoogle.anic.