Share

GLanChat

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

amd64

You are viewing a single message from this topic. View all messages.

  1. nobody

    2008-01-19 19:44:28 UTC
    żeby glanchat dzialal na 64-bitowych maszynach trzeba zmienić w deklaracji nagłówka LCHEAD (plik lanchat.h):
    gulong Reserved...
    na:
    guint32 Reserved...

    oczywiście winę ponosi tu inna wielkość long int na 32- i 64-bitowych systemach; powinno być 32 bity.
    Generalnie nie powinno się używać "nieprzenośnych" typów danych w takich rzeczach jak nagłówki protokołów...

    hint:
    http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html
    "Integer types which are guaranteed to be the same size across all platforms - gint8, guint8, gint16, guint16, gint32, guint32, gint64, guint64."
< Previous | 1 | Next >

Add a Reply

You can use Markdown syntax in your reply.

Preview

Monitor this

Log in to monitor this topic. Not registered? Create an account to receive email updates when replies are posted to this topic. If you do not log in or register, your reply will be added anonymously.