Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8216889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:17:18+00:00 2026-06-07T12:17:18+00:00

At work, I’ve been trying to get a new version of Red Hat Linux

  • 0

At work, I’ve been trying to get a new version of Red Hat Linux installed on a computer, and more importantly, to run a custom bit of code. When I made this upgrade, I noticed the following error:

cast from ‘void*’ to ‘int’ loses precision

In addtion, I’ve been noticing a string of other errors based from a library which forces use to 32 bit addresses. They seem to result from essentially type casting an in to a custom library 32 bit value.

Bottom line is this. I believe that the compiler has changed the default size of an int from 32 bit to 64 bit. I’m trying to figure out if this is the case without writing a trivial program to determine the size of the integer. In addition, is there a way to force the size back to 32 bits, at least as a proof of concept?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:17:22+00:00Added an answer on June 7, 2026 at 12:17 pm

    If you’re on an x86_64 box, int is still 4 bytes. if it was 8, the compiler would not tell you

    cast from 'void*' to 'int' loses precision
    

    because there would be no precision to lose. what it’s telling you that your trying to cram an 8byte pointer to a 4byte int, that’s quite obviously going to lose a bit of information.

    also, and this is just a sidenote, how hard can it be to write this?

    #include <ostream>
    #include <iostream>
    
    #define sz(t) std::cout << sizeof(t) << '\n'
    int
    main(void)
    {
      sz(char);
      sz(int);
      sz(long);
      sz(void*);
      return 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We work usually on more than one version of the application, where each version
I work on multiple systems throughout the day. I've been trying to figure out
Work on a support helpdesk. New tickets come in and records are created in
I work with the Python plugin for Eclipse : PyDev on Linux and I'm
Work on C#, in one of my application I need to get the SQL
work on Sql server 2000. i want to get the current server date and
I work for a very large organization that is looking for new ideas. Currently
I work on writing the excel Add-In using Excel Interop. I want to get
Any work-arounds? myContainer.getContentPane().addContainerListener(new ContainerListener(){ @Override public void componentAdded(ContainerEvent e) { System.out.println(e.getChild().getClass().getName().toString()); }}); myContainer.add(new JPanel());
i work on my Ruby on Rails application and i'm new to Rails. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.