Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Empty string crash (*solved*)
#1
Compiler crashes if a sub is sent an empty string:

Code:
SUB stringtest (thing as string)
asm
DI
HALT
END ASM
END SUB

stringtest("")
Reply
#2
britlion Wrote:Compiler crashes if a sub is sent an empty string:

Code:
SUB stringtest (thing as string)
asm
DI
HALT
END ASM
END SUB

stringtest("")
True, and fixed. Please, download the latest version, try it and tell me.
Reply
#3
That seems to fix it.

What was the error?
Reply
#4
An error in the compiler, which wasn't checking in a string parameter was constant and zero-length Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)