partial fix for float problem

git-svn-id: file:///home/svn/incoming/trunk@3316 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2006-01-06 02:26:22 +00:00
parent 237af88317
commit d1e8d89f07
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class Generic
first = (randbase/0x10) + 0x50 first = (randbase/0x10) + 0x50
else else
# pick one at "random" # pick one at "random"
first = randbase/0x10 first = (randbase/0x10)
if (first % 2) if (first % 2)
first += 0x40 first += 0x40
else else
@ -59,7 +59,7 @@ class Generic
end end
# now add our new bytes :) # now add our new bytes :)
first.chr + second.chr first.to_i.chr + second.chr
end end
def Generic.encode(buf, reg, offset) def Generic.encode(buf, reg, offset)