English
Bugs and vermeintliche

XProfan X2

Signed ./. UnSigned -trouble with Hexkonstanten?

 
Imho becomes this View source:

not correctly worn out:



Hierbei set I x& on the worth $FFFFFFFE and question thereafter x& ex whether it whom same worth $FFFFFFFE own. becomes but "nein" determined.

or übersehe I thereby something?

so GEHTS:
cls
print $profVer
var x&=-2
casenot x&=-2 : messageBox "Fehler","",0
waitInput
end

so not:
and so GEHTS too:

2 kB
Hochgeladen:02/10/11
Downloadcounter258
Download
 
02/10/11  
 




RGH
Hi,
here comes to that carry, that Hexwerte ($xxxxx) now too QuadInt-length having can.
that is means, that $FFFFFFFE for worth 4294967294 standing, what itself still right explicit of -2 distinguish. ;)
becomes but this $FFFFFFFE now solely one a signed LongInt x& allocated, becomes The Bytefolge there naturally as -2 interprets.
but one can Yes now QuadInts using:

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/10/11  
 



Hm - that is but too the You a Long-Variable with a Quad-worth vergleichst - means x& is Long and $FFFFFFFE then but as Quad interpretierst.

i'm now not 100% clear whether the so "gut and richtig" is because to "long=" still garkein Quad come might.
 
02/10/11  
 




RGH
Why ought to not weg? as long as the worth the Quad inside the Wertebereiches one a signed Longs is, can the Quad free from problems with the Long compared and be even same his. is the Quad but - How in unserem example - outside the Wertebereiches, must the comparison naturally "falsch" yield.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/10/11  
 



what I mean is still, and so a Long-Variable with a Quad-worth vergleichen instead of a Long-Variable with a Long-worth and a Quad-Variable with a Quad-worth because then would it Yes in each drop correctly. functions.
 
02/10/11  
 




Jörg
Sellmeyer
Roland has already right. $FFFFFFFE is even not -2, separate The Variable x& is -2.
If then müßtest You two Longvariablen vergleichen:
cls
print $profVer
var x&=$FFFFFFFE
var y& = $FFFFFFFE
casenot x&=y& : messageBox "Fehler","",0
waitInput
end
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02/10/11  
 



i see you Yes, but whether the now correctly. is the "ich" instead of "XProfan" two Long-variables(-values) vergleichen ought to where the argument still already Long vorgibt...
 
02/10/11  
 




RGH
Well, if you aware a Longvariable with a Literal vergleichst, that outside the Bereichsgrenzen one Long lying, what expect You?

OK, I could it to check on and a Error Message produce. but helps the moreover? what about me could with the Zuweisung too to check on, whether the worth at all into Variable reinpasst, but the have I yet never made. but How one it turn and contact: $FFFFFFFE is now times not -2!

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/10/11  
 



RGH (10.02.11)
Well, if you aware a Longvariable with a Literal vergleichst, that outside the Bereichsgrenzen one Long lying, what expect You?


Imho lying $FFFFFFFE still not at all ausserhalb the Bereichsgrenze one 32-bit Long - therefore GEHTS me still.
 
02/10/11  
 




Jörg
Sellmeyer
this is so, as if You whom String "Ich be one langer set, the not a short Variable paßt" on a Stringvariable with begrenzter length zuweist and you then wunderst, that the both different are.

x$(23) = "Ich be one langer set, the not a short Variable paßt"
Case x$ <> "Ich be one langer set, the not a short Variable paßt": wunderwunder

Nachtrag:
now understand I your argument not any more.
cls
print $profVer
var x&=1.1
casenot x&=1.1 : messageBox "Fehler","",0
waitInput
end

here happens still very the same. x& = 1.1 becomes 1. compared with 1.1 yields the a Error.

at that others example becomes x& = $FFFFFFFE To -2 and this is nu times not $FFFFFFFE
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02/10/11  
 




RGH
To Long and Quad: means in my eyes lying 4294967294 ($FFFFFFFE) definitiv outside the vorzeichenbehaftetet Long-Wertebereichs!
(In a Long without omen would it reinpassen, but whom knows XProfan not.)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/10/11  
 



I have Yes whom Topics-Title "Signed ./. UnSigned -trouble with Hexkonstanten?" chosen.

Jörg Sellmeyer (10.02.11)
this is so, as if You whom String "Ich be one langer set, the not a short Variable paßt" on a Stringvariable with begrenzter length zuweist and you then wunderst, that the both different are.


I mean that I the so not do would, means me then wonder.

its imho indeed not so, that here a Satzlänge vorliegt, The not whom String fit, because there's Yes none Informationsverlußt with:

because too one signedLong exists from 4 byte and only The go here described. ^^

$FFFFFFFE is with one signedLong -2 what about me grüble hold whether XProfan at argument Long=$FFFFFFFE The rights Page (there these into long reinpasst) correctly as Quad instead of Long interprets.

I give me but too beaten if I as a Gedankenfehler Have. ^^
 
02/10/11  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

24.953 Views

Untitledvor 0 min.
iF01/02/16
Georg Teles01/02/16
E.T.12/26/15
Jörg Sellmeyer11/18/15
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie