projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1be8e5
)
change bounds check
author
bdemsky
<bdemsky>
Wed, 29 Jun 2011 09:45:24 +0000
(09:45 +0000)
committer
bdemsky
<bdemsky>
Wed, 29 Jun 2011 09:45:24 +0000
(09:45 +0000)
Robust/src/Runtime/bamboo/multicoreruntime.c
patch
|
blob
|
history
diff --git
a/Robust/src/Runtime/bamboo/multicoreruntime.c
b/Robust/src/Runtime/bamboo/multicoreruntime.c
index 37a772575aac41f1eb257b24cd2ac0eb06e451be..4d8e5f0e59d9037d4a991d69ed26784e2c51deb0 100644
(file)
--- a/
Robust/src/Runtime/bamboo/multicoreruntime.c
+++ b/
Robust/src/Runtime/bamboo/multicoreruntime.c
@@
-504,9
+504,10
@@
struct ___String___ * NewString(const char *str,
/* Generated code calls this if we fail a bounds check */
-
void failedboundschk(int num
) {
+
void failedboundschk(int num, int index, struct ArrayObject * ao
) {
#ifndef TASK
- printf("Array out of bounds, %d \n", num);
+ printf("Array out of bounds at line %u with index %u of object %x with lengt\
+h %u\n", num, index, ao, ao->___length___);
#ifdef THREADS
threadexit();
#elif defined MGC