Results 1 to 2 of 2

Thread: QWord bug?

  1. #1

    QWord bug?

    I'm using fpc version 2.4.4 on Windows XP 32-bit.

    When run, this small piece of code produces exitcode=215:

    Code:
    PROGRAM test;
    
    VAR x : byte;
        y : qword;
    
    BEGIN
       x := 3;
       y := x * 1000000000;
    END.
    However, this doesn't:

    Code:
    PROGRAM test;
    
    VAR x : byte;
        y : qword;
    
    BEGIN
       x := 2;
       y := x * 1000000000;
    END.
    Nor this:

    Code:
    PROGRAM test;
    
    VAR y : qword;
    
    BEGIN
       y := 3 * 1000000000;
    END.
    And neither does this (the number x is multiplied by is increased by a factor 10):

    Code:
    PROGRAM test;
    
    VAR x : byte;
        y : qword;
    
    BEGIN
       x := 3;
       y := x * 10000000000;
    END.
    What on earth is going on?
    Laserbrain Studios - Currently developing Hidden Asset!
    Ascii Sector
    - Real-time roguelike in space!

  2. #2
    Never mind. I'm an idiot. :s
    Laserbrain Studios - Currently developing Hidden Asset!
    Ascii Sector
    - Real-time roguelike in space!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •